Hello, I've noticed that on Gentoo the zsh built doesn't include the curses module. Closer look revealed the cause: the ncurses libraries (ncursesw and ncurses) don't provide the call tgetent (nor tigetflag), only tinfo does provide it. I guess this is the next step in splitting libtinfo out of ncurses. But this means that the binary can be linked to both ncurses and tinfo. I've also checked that linking against such tgetent-lacking ncurses and termcap works with no problems. The patch does: - it allows the normal flow of the checks with no changes, - in the "if we need to ignore ncurses" check it adds, in case of positive resolution of the test, an additional check that verifies for initscr() in any of ncursesw, ncurses, curses and if this check is positive, it then allows to link against that found curses library, - it also adds libtinfow (side to libtinfo) to the terminal libraries searched, as such library exists on the Gentoo system. This way the zsh/curses module builds OK. I attach the git-format-patch file. -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org