Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: termcap special param
- X-seq: zsh-workers 13987
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: termcap special param
- Date: Fri, 13 Apr 2001 23:22:09 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1010414014118.ZM2313@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxxxxxxxxx on Sat, Apr 14, 2001 at 01:41:18AM +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010413194255.A31289@xxxxxxxx> <1010414014118.ZM2313@xxxxxxxxxxxxxxxxxxxxxxx>
> There's no mention of NCURSES_VERSION anywhere in this patch ... what
> check do you mean?
I'm referring to the #if !defined(NCURSES_VERSION) || !defined(COLOR_PAIR)
stuff in bin_echotc, which is theoretically relevant for all calls to
tgetflag().
ncurses 4.2's tgetflag() will return ERR (-1) if called with an argument
not found in boolcodes. ncurses 5.2's tgetflag() will return 0, a la
Solaris.
We could find out the relevant ncurses versions and qualify the
preprocessor directives, or we could determine what sort of
tgetflag() is present by a configure test, which I guess could
be as simple as testing the return value of tgetflag() when
called with a termcap code guaranteed not to be in boolcodes.
For example, 'co' is quite unlikely to be a boolean flag.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author