Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jun 2006 17:37:26 -0400
From:      Thomas Dickey <dickey@radix.net>
To:        Walt Pawley <walt@wump.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: termcap vs terminfo, less, and Mac OS X
Message-ID:  <20060602213726.GA5221@saltmine.radix.net>
In-Reply-To: <a05210239c0a65ac0fa73@[10.0.0.10]>
References:  <a05210239c0a65ac0fa73@[10.0.0.10]>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060602213726.GA5221>