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

Re: zsh/termcap and zsh/terminfo modules



> Can someone who has terminfo confirm that (( $+terminfo )) is a valid
> test of whether the terminfo module is available?  Of course, zsh could
> have been configured via config.modules to not autoload it ...

$+terminfo returns 1 (after autoloading the module).

> The other thought I had was to make both modules loadable, but simply
> not do anything useful if the corresponding library wasn't available
> (e.g. on my system "echoti ..." would always return nonzero, and the
> $terminfo hash would be empty).  That makes (( $+terminfo )) useless.

Perhaps the libraries to link to for each module should be dictated
by the .mdd files.



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