From owner-freebsd-stable@FreeBSD.ORG Mon Feb 1 18:42:53 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E93681065695 for ; Mon, 1 Feb 2010 18:42:53 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta13.emeryville.ca.mail.comcast.net (qmta13.emeryville.ca.mail.comcast.net [76.96.27.243]) by mx1.freebsd.org (Postfix) with ESMTP id D277E8FC1B for ; Mon, 1 Feb 2010 18:42:53 +0000 (UTC) Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta13.emeryville.ca.mail.comcast.net with comcast id ciEK1d0011wfjNsADiiuPt; Mon, 01 Feb 2010 18:42:54 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta23.emeryville.ca.mail.comcast.net with comcast id ciir1d0023S48mS8jiirkm; Mon, 01 Feb 2010 18:42:54 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id CA3241E3033; Mon, 1 Feb 2010 10:42:49 -0800 (PST) Date: Mon, 1 Feb 2010 10:42:49 -0800 From: Jeremy Chadwick To: freebsd-stable@freebsd.org Message-ID: <20100201184249.GA46038@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: terminfo missing? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 18:42:54 -0000 On Mon, Feb 01, 2010 at 07:13:48PM +0100, Ivan Voras wrote: > This has bugged me on a couple of machines but I've always > attributed it to some misconfiguration of mine: running curses-like > programs under "screen" (i.e. in virtual screens) fails with > messages like "terminal entry not found". For example, "less" does > this, and "vim" complains with this: > > E558: Terminal entry not found in terminfo > 'screen' not known. Available builtin terminals are: > builtin_ansi > builtin_xterm > builtin_iris-ansi > builtin_dumb > defaulting to 'ansi' > > Looking at terminfo(5) it looks like terminfo should be located at > /usr/share/misc/terminfo/ but I have no such directory here. There > is a /usr/share/misc/termcap file. > > This machine is relatively fresh, only a source-based update was > performed from 8.0-R to 8.0-STABLE, so I don't think there is some > package that does this. > > Can someone enlight me about what is happening here? Don't let the message from vim fool you; it says "Terminal entry not found in terminfo", but what it's really trying to tell you is "not found in termcap". It'll say "terminfo" no matter what. FreeBSD uses termcap, not terminfo. The definition for the "screen" termcap entry is in /usr/share/misc/termcap, which is what /etc/termcap is symlinked to. You should also have a /usr/share/misc/termcap.db file. I've no issues using vim, sade, sysinstall, less, etc. under screen on RELENG_7 or RELENG_8 machines. This is with TERM=screen as well (no dotfiles or environment settings overriding it). Do you have some sort of library on your machine which is trumping the ones in /usr/lib? Relevant linking: /usr/local/bin/vim: libm.so.5 => /lib/libm.so.5 (0x30781000) libncurses.so.8 => /lib/libncurses.so.8 (0x308a0000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x309ea000) libc.so.7 => /lib/libc.so.7 (0x30be3000) /usr/bin/less: libncurses.so.8 => /lib/libncurses.so.8 (0x3065e000) libc.so.7 => /lib/libc.so.7 (0x307a8000) -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |