Bug 868684

Summary: serial-getty@ttyS0.service fails to set LINES and COLUMNS variables correctly.
Product: [Fedora] Fedora Reporter: Byron Young <bky>
Component: systemdAssignee: systemd-maint
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: johannbg, lnykryn, metherid, msekleta, notting, plautrba, systemd-maint, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-22 12:48:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Captured terminal output none

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.