[Bug 1810578] Re: Set correct terminal size to improve login over serial port experience
Mark Shuttleworth
1810578 at bugs.launchpad.net
Sat Jan 5 08:52:39 UTC 2019
&& works better :)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to base-files in Ubuntu.
https://bugs.launchpad.net/bugs/1810578
Title:
Set correct terminal size to improve login over serial port experience
Status in base-files package in Ubuntu:
New
Bug description:
For people who use ipmiconsole or other serial port access to servers
a great deal it would be helpful to set LINES and COLUMNS correctly on
login. There are a number of ways to do this. I found a small (10k) C
application at:
http://web.archive.org/web/20081224152013/http://www.davehylands.com
/gumstix-wiki/resize/resize.c
which works nicely. It appears to be a simplified version of the
resize command in xterm (which has too many dependencies for
comfortable server usage). It seems quite old (2006) so there may be a
better, newer version of this. Perhaps it would be better named tty-
resize.
I added the following two lines to .profile which then invoke the
resize command on login:
# size the terminal for login over serial
[[ $(tty) == /dev/ttyS* ]] & /usr/local/bin/resize
I think remote serial usage is interesting for cloud and server farm
use cases which are a big part of Ubuntu usage, so would like to
improve experience in these cases across the board. This is a small
part of that.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1810578/+subscriptions
More information about the foundations-bugs
mailing list