ttydX and xterm size (LINES and COLUMNS understanding)

Emanuel Strobl emanuel.strobl at gmx.net
Mon Mar 7 22:34:59 PST 2005


Dear console gurus,

when I open a xterm on the local machine, say with 100x37, vi and man 
recognizes the size and display the content correctly.
If I use cu/tip in a 100x37 xterm "ls" works fine (uses all lines) as long as 
I start vi but man doesn't work (no scrolling possible). After the vi session 
only 24 lines (or whatever type I set in /etc/ttys) are used, but man works 
correctly.
Why can I use different terminal sizes on the local machine and in ssh 
sessions but not over a serial console?
If I set "setenv LINES 37" and "setenv COLUMNS 100" it works also on the 
serial line but why or how can vi and others know what size my terminal is 
via ssh session? I'm sure this behaviour is adoptable to serial consoles too.

Thanks,

-Harry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050308/d2416ebc/attachment.bin


More information about the freebsd-questions mailing list