From owner-freebsd-questions@FreeBSD.ORG Fri Jun 2 21:37:29 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2B1E016A51A for ; Fri, 2 Jun 2006 21:37:29 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D22E43D45 for ; Fri, 2 Jun 2006 21:37:27 +0000 (GMT) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id k52LbR3F008723; Fri, 2 Jun 2006 17:37:27 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id k52LbQiS008717; Fri, 2 Jun 2006 17:37:26 -0400 (EDT) Date: Fri, 2 Jun 2006 17:37:26 -0400 From: Thomas Dickey To: Walt Pawley Message-ID: <20060602213726.GA5221@saltmine.radix.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Cc: freebsd-questions@freebsd.org Subject: Re: termcap vs terminfo, less, and Mac OS X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 21:37:29 -0000 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 02, 2006 at 02:26:07PM -0700, Walt Pawley wrote: > I've been messing about with FreeBSD lately, though mostly I > use Mac OS X. I've grown accustomed to using "less" as a pager, > generally preferring the manner in which it would make all the > scrolled through crud vanish when I was done pawing about in > it. But "less" didn't behave that way when telnet'd into the > the FreeBSD boxes on the LAN - whatever got presented scrolled > "up" into the terminal program's capture buffer. >=20 > After mucking with this for a couple of days, I believe the > reason is that the termcap description of "xterm-color" in > FreeBSD doesn't match the "xterm-color" terminfo description in > either Mac OS X or Linux (which seem to be identical). In > particular, the "ti" and "te" capabilities are null. Most of the Linux's have xterm-color the same as in ncurses. A couple (I've observed) do as in Mac OS X and choose some flavor of xterm to replace it. There's no standard choice for the replacement. The choice of whether to have ti/te null is arbitrary (half of xterm's users like the alternate screen, half don't). =20 > Is this intentional or something that should be generically "fixed"? The fix is simply not to use "xterm-color". It doesn't correspond to any terminal type, is useful only to people who don't care to find out what the terminal is. For instance, you've not identified the terminal type. Find out what it is... xterm supports ANSI color, VT220 emulation and UTF-8 There's an faq at http://invisible-island.net/xterm/xterm.faq.html ftp://invisible-island.net/xterm/ The current version of ncurses is 5.5 (20051010) There's an faq at http://invisible-island.net/ncurses/ncurses.faq.html --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFEgK+VtIqByHxlDocRAgCCAJ9SctG5DlmbzZj7zbqy1jk9klhwWwCfTLjk BMCoRHLPZmd2asREiR4RkLw= =TCal -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--