Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: configure should have --with-ncurses and --with-ncursesw

On 2006-12-19 16:22:38 +0000, Peter Stephenson wrote:
> DervishD wrote:
> >     Hi Peter :)
> > 
> >  * Peter Stephenson <pws@xxxxxxx> dixit:
> > > Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> > > > No-one commented on this.
> > > 
> > > That's probably because this is MAC-specific and nobody knew what it
> > > meant.
> > 
> >     Not at all, AFAIK. The ncursesw library can be used in any Linux,
> > for example.
> Indeed, I've got it here.  The problem seems to be that in the case in
> question it's getting in the way for some reason and if we knew the whys
> and wherefores we could presumably avoid it.

The problem is that zsh uses the curses API by default, so that
currently, the only way to use the ncurses library is to install
curses compatibility link (ncurses doesn't install them, but
Linux distributions and Mac OS X do). The problem occurs when
the user wants to install a newer version of ncurses (from
upstream) in /usr/local, /opt/local or whatever. As zsh uses
curses by default, it uses the old ncurses library (which, in
the case of Mac OS X, is buggy).

To be able to use ncurses by default, I had to change the configure

-  termcap_curses_order="tinfo curses ncurses termcap"
+  termcap_curses_order="ncurses tinfo curses termcap"

Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

Messages sorted by: Reverse Date, Date, Thread, Author