Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: termcap bug on Linux
- X-seq: zsh-workers 14571
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: ZSH Workers Mailing List <zsh-workers@xxxxxxxxxx>
- Subject: Re: termcap bug on Linux
- Date: Wed, 30 May 2001 15:29:58 +0000
- In-reply-to: <20010530100001.A27922@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1010529160507.ZM13557@xxxxxxxxxxxxxxxxxxxxxxx> <000001c0e8d1$33b431b0$21c9ca95@xxxxxxxxxxxxxx> <20010530100001.A27922@xxxxxxxx>
On May 30, 10:00am, Clint Adams wrote:
} Subject: Re: termcap bug on Linux
}
} I'm fine with the consistency. I just think that an unconditional
} reliance on NCURSES_VERSION being set is going to lead to trouble.
Back in 13987 you wrote:
} 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.
The test in termcap.c is
#if !defined(NCURSES_VERSION) || !defined(COLOR_PAIR)
COLOR_PAIR is defined in ncurses 4.2, so apparently this behavior has
bounced back and forth with different versions of ncurses. So it looks
as if a configure test may be the safest approach, but it might be OK
to test (NCURSES_MAJOR_VERSION < 5).
I'm going to commit 14516 as it is, and then look at this a bit more.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author