termcap under single luser
dickey at radix.net
Mon Aug 4 15:28:40 UTC 2008
On Mon, Aug 04, 2008 at 04:04:14PM +0200, Dimitry Andric wrote:
> On 2008-08-04 15:30, Oliver Fromme wrote:
> > This seems to be a problem with nvi. AFAIR the original
> > BSD vi would run fine without a termcap. It would enter
> > open-mode automatically in that case. Among the various
> > vi clones, elvis implements open-mode, but nvi does not.
> > Anyway, I vote for moving termcap to /etc.
> Please note that /rescue/vi does NOT read termcap from /etc, at least
> not on RELENG_7. (The ncurses library only seems to use $HOME/.termcap
> and /usr/share/misc/termcap, nothing else.)
That behavior can be overridden (man ncurses):
If TERMCAP does not hold a file name then ncurses checks the
TERMPATH symbol. This is a list of filenames separated by spaces
or colons (i.e., ":") on Unix, semicolons on OS/2 EMX. If the
TERMPATH symbol is not set, ncurses looks in the files /etc/term-
cap, /usr/share/misc/termcap and $HOME/.termcap, in that order.
Thomas E. Dickey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 228 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080804/54f2d191/attachment.pgp
More information about the freebsd-current