Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: termcap special param
- X-seq: zsh-workers 13988
- From: Andrej Borsenkow <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: termcap special param
- Date: Sat, 14 Apr 2001 09:15:59 +0400 (MSD)
- In-reply-to: <20010413232209.A8290@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
In such cases I always ask myself - what happens, if a program is linked
against dynamic library? Is it possible to silently exchange 4.2 version
against 5.2 version? That would definitely break a lot of things.
-andrej
On Fri, 13 Apr 2001, Clint Adams wrote:
> > 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