Date: Mon, 5 Jun 2000 03:39:10 +0100 From: Josef Karthauser <joe@pavilion.net> To: "Andrey A. Chernov" <ache@FreeBSD.ORG> Cc: Josef Karthauser <joe@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/bin/ls Makefile extern.h ls.c ls.h print.c Message-ID: <20000605033910.S620@pavilion.net> In-Reply-To: <20000604192104.A99868@freebsd.org>; from ache@FreeBSD.ORG on Sun, Jun 04, 2000 at 07:21:05PM -0700 References: <200006050214.TAA18352@freefall.freebsd.org> <20000604192104.A99868@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 04, 2000 at 07:21:05PM -0700, Andrey A. Chernov wrote:
> On Sun, Jun 04, 2000 at 07:14:01PM -0700, Josef Karthauser wrote:
> > joe 2000/06/04 19:14:01 PDT
> >
> > Modified files:
> > bin/ls Makefile extern.h ls.c ls.h print.c
> > Log:
> > * Re-implement colour support using termcap's AF and AB capabilities
> > to manage the ANSI colour sequences. Colour support is disabled
> > unless the TERM environment variable references a valid termcap.
>
> if (tgetent(NULL, getenv("TERM")) == 1)
>
> this is illegal termlib call, you must specify at least 1024 bytes buffer as
> first argument.
Can do, but when I went looking through the man page for the correct
sizing all I could find was:
The tgetent routine loads the entry for name. It returns
1 on success, 0 if there is no such entry, and -1 if the
terminfo database could not be found. The emulation
ignores the buffer pointer bp.
In the name of compatibility with other implementations I'll fix it
for a 1024 byte buffer.
Joe
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000605033910.S620>
