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

Re: Bug#454414: zsh-beta: missing terminfo module



On Wed, Dec 05, 2007 at 09:52:57AM -0500, Clint Adams wrote:
> +# ifdef HAVE_CURSES_H
> +#  include <curses.h>
> +# endif
> +#else
> +# ifdef HAVE_NCURSESW_NCURSES_H
> +#  include <ncursesw/ncurses.h>
> +# else
> +#  ifdef HAVE_NCURSES_NCURSES_H

Oops.

/etc/zsh-beta/zshrc:12: module `zsh/terminfo' has no such feature: `b:echoti': autoload cancelled
/etc/zsh-beta/zshrc:12: module `zsh/terminfo' has no such feature: `p:terminfo': autoload cancelled
/etc/zsh-beta/zshrc:12: unknown parameter: terminfo 

Index: Src/Modules/terminfo.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/terminfo.c,v
retrieving revision 1.31
diff -u -r1.31 terminfo.c
--- Src/Modules/terminfo.c	5 Dec 2007 15:21:23 -0000	1.31
+++ Src/Modules/terminfo.c	7 Dec 2007 00:05:31 -0000
@@ -30,7 +30,7 @@
 #define USES_TERM_H 1
 #include "terminfo.mdh"
 
-#if defined(HAVE_TIGETFLAG) && defined(HAVE_CURSES_H)
+#if defined(HAVE_TIGETFLAG) && (defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H) || defined(NCURSESW_NCURSES_H))
 # define USE_TERMINFO_MODULE 1
 #else
 # undef USE_TERMINFO_MODULE



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