From owner-freebsd-questions@FreeBSD.ORG Tue Mar 8 06:34:59 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0CB416A4CE for ; Tue, 8 Mar 2005 06:34:59 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 9EE6F43D64 for ; Tue, 8 Mar 2005 06:34:58 +0000 (GMT) (envelope-from emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 08 Mar 2005 06:34:57 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) (62.245.232.135) by mail.gmx.net (mp017) with SMTP; 08 Mar 2005 07:34:57 +0100 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org Date: Tue, 8 Mar 2005 07:34:40 +0100 User-Agent: KMail/1.7.2 X-Birthday: 10/06/72 X-CelPhone: +49 173 9967781 X-Tel: +49 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1378792.dLInSEiQmJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200503080734.46757@harrymail> X-Y-GMX-Trusted: 0 Subject: ttydX and xterm size (LINES and COLUMNS understanding) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 06:34:59 -0000 --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--