Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Oct 2011 16:27:37 -0400
From:      Thomas Dickey <dickey@radix.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: nice man pages?
Message-ID:  <20111026202737.GA15079@saltmine.radix.net>
In-Reply-To: <87ehxz4qfm.fsf@oak.localnet>
References:  <20111026032037.23014255@davenulle.org> <87obx44d5w.fsf@oak.localnet> <20111026081045.GA8798@saltmine.radix.net> <87ehxz4qfm.fsf@oak.localnet>

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

--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 26, 2011 at 10:23:57AM -0700, Carl Johnson wrote:
> Thomas Dickey <dickey@radix.net> writes:
>=20
> > fwiw, without also setting the NC capability (something like NC#35),
> > it'll confuse curses/ncurses since that conflicts with the normal
> > color controls.
>=20
> Thanks, I had missed that description in the terminfo(5) manpage.  It
> worked fine without it, but that might have been just because I hadn't
> been using enough colors.  I put it in but there is no change for my
> applications.

To explain - since you're using colors to replace some of the video
attributes, a curses application (less isn't one) will occasionally
reset either a color or a "video attribute", supposing them to be
distinct.

(I don't have a demo in mind, but know that's how the code works...).

Using NC, then curses applications will prefer using colors over the
video attributes.  (Again, less wouldn't be affected, since it's not
trying to do more than one thing at a time on the screen).

--=20
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

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

iD8DBQFOqG03tIqByHxlDocRAh+sAJ4or1oKTZR8D5SHZzlYeTMwf6au4wCfYI8+
VB7OdzloTPlD/oPk+2QhOLk=
=IoXF
-----END PGP SIGNATURE-----

--7JfCtLOvnd9MIVvH--



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