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

Re: can't find termcap info

On Sep 18,  5:38am, Will Yardley wrote:
> i don't understand this fully (perhaps bart or someone can give a more
> depth explanation), but i believe that unless you specifically compile
> zsh with ncurses (or have a version that was compiled to work with
> ncurses) it uses some sort of system of its own.

No, that's not it.

Zsh's configure looks for the smallest set of libraries that will provide
support for ZLE.  (As in smallest memory footprint, or at least that was
the original intent.)  Curses is the heavyweight of the bunch, so that is
avoided unless nothing else will work (or unless you ask configure to use
it via --with-curses-terminfo).  Zsh's configure looks for termcap first,
then terminfo, and finally curses, except on some specific platforms where
that search order is known to be sub-optimal.

So the chances are that if termcap exists and you didn't pass any options
to configure, then termcap is the only thing that zsh will understand.

On Sep 18,  2:59pm, Vincent Lefevre wrote:
> > export TERMCAP=/etc/termcap (terminfo is better if it works)
> greux:~> export TERMCAP=$HOME/.termcap                                <14:54:42
> greux:~> TERM=nettle                                                  <14:54:55
> rlogin: connection closed.
> Why???

Here's what you do:  Log in to greux.  Start a second copy of zsh inside the
first one, so that you're no longer working directly with the login shell.
Then try the above again and see if (a) the connection still closes or (b)
you get some error messages when the "nested" shell exits.

Then tell us about it.

On Sep 18,  4:51pm, Vincent Lefevre wrote:
> >  are you sure that the termcap and / or terminfo info for your
> > terminal type is correct?
> It works with Mutt, less and emacs. But well, zsh doesn't say that it is
> incorrect; it says that it can't find the termcap info.

It's entirely possible that Mutt, less, emacs, and bash are using terminfo
(which is OK) while zsh is using termcap (which has something wrong).

> nettle|nettle terminal emulator (RISC OS):\
> 	:ke=:ks=:tc=rxvt:

Are you sure there's an rxvt entry?  What happens if you do


?  Is there any value you can assign to TERM that does *not* produce the

On Sep 18,  6:13pm, Vincent Lefevre wrote:
> Here, until I installed ncurses 5.2 (which is after I compiled zsh),
> tgetent didn't seem to exist; at least, there was no man page about
> this function.

Try "man curs_termcap".  However, tgetent() is unlikely to be the problem.

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