From owner-freebsd-current@FreeBSD.ORG Mon Aug 4 15:28:40 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0F67106566C for ; Mon, 4 Aug 2008 15:28:40 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 824D38FC08 for ; Mon, 4 Aug 2008 15:28:40 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id m74E9AuG017719; Mon, 4 Aug 2008 10:09:10 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id m74E9AWc017716; Mon, 4 Aug 2008 10:09:10 -0400 (EDT) Date: Mon, 4 Aug 2008 10:09:10 -0400 From: Thomas Dickey To: freebsd-current@freebsd.org Message-ID: <20080804140909.GA16243@saltmine.radix.net> References: <200808041330.m74DUsg9075683@lurza.secnetix.de> <48970C5E.6000406@andric.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <48970C5E.6000406@andric.com> User-Agent: Mutt/1.3.27i Cc: randy@psg.com, Dimitry Andric Subject: Re: termcap under single luser X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 15:28:40 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > >=20 > > Anyway, I vote for moving termcap to /etc. >=20 > 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): TERMPATH If TERMCAP does not hold a file name then ncurses checks = the TERMPATH symbol. This is a list of filenames separated by spa= ces or colons (i.e., ":") on Unix, semicolons on OS/2 EMX. If = the TERMPATH symbol is not set, ncurses looks in the files /etc/te= rm- cap, /usr/share/misc/termcap and $HOME/.termcap, in that order. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFIlw2CtIqByHxlDocRAoZNAJwPb5qemfzgDPzONl8cLZwUm4mKHgCgmBb4 Zw9eubWdaSni1pe4e0Ghj3M= =tMvs -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--