Bug 868684 - serial-getty fails to set LINES and COLUMNS variables correctly.
Summary: serial-getty@ttyS0.service fails to set LINES and COLUMNS variables correctly.
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-21 18:04 UTC by Byron Young
Modified: 2012-10-22 12:48 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-22 12:48:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Captured terminal output (7.59 KB, application/vnd.tcpdump.pcap)
2012-10-21 18:04 UTC, Byron Young
no flags Details

Description Byron Young 2012-10-21 18:04:04 UTC
Created attachment 630947 [details]
Captured terminal output

Description of problem:

Terminal machine is running Fedora 16/x86_64 and displays virtual consoles using 160 columns and 64 lines; TERM=linux, LINES=64, and COLUMNS=160. Running 'minicom -c on -m' on the terminal machine shows the login prompt from a Fedora 16/i386 machine directly connected by a null modem cable on ttyS0. From the terminal, TERM=vt102, LINES=24, COLUMNS=80, but should be LINES=64, COLUMNS=159. Using stty(1) to set the variables manually results in the correct settings and deactivating the minicom status bar results in a better functioning termial which displays emacs properly.

The output of script 'set.sh' shows the issues. 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:
COLUMNS=80
LINES=24

Expected results:
COLUMNS=159
LINES=64

Additional info:
See attached output minicom.cap

Comment 1 Lennart Poettering 2012-10-22 12:48:29 UTC
Serial cables do not communicate the terminal width/height nor the emulation, this cannot be fixed really... We default to some reasonably safe defaults for TERM (which is vt102) and leave COLUMNS/LINES unset, which is the best we can do.


Note You need to log in before you can comment on or make changes to this bug.