Date: Tue, 8 Mar 2005 07:34:40 +0100 From: Emanuel Strobl <emanuel.strobl@gmx.net> To: freebsd-questions@freebsd.org Subject: ttydX and xterm size (LINES and COLUMNS understanding) Message-ID: <200503080734.46757@harrymail>
next in thread | raw e-mail | index | archive | help
--nextPart1378792.dLInSEiQmJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear console gurus, when I open a xterm on the local machine, say with 100x37, vi and man=20 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=20 I start vi but man doesn't work (no scrolling possible). After the vi sessi= on=20 only 24 lines (or whatever type I set in /etc/ttys) are used, but man works= =20 correctly. Why can I use different terminal sizes on the local machine and in ssh=20 sessions but not over a serial console? If I set "setenv LINES 37" and "setenv COLUMNS 100" it works also on the=20 serial line but why or how can vi and others know what size my terminal is= =20 via ssh session? I'm sure this behaviour is adoptable to serial consoles to= o. Thanks, =2DHarry --nextPart1378792.dLInSEiQmJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCLUeGBylq0S4AzzwRAnUuAJ9gXOuJuzRpFNrUtoXtYxjoQfMrNQCffjZM x1mB07tOrW81brc93ytfzlU= =P7QP -----END PGP SIGNATURE----- --nextPart1378792.dLInSEiQmJ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503080734.46757>