From owner-freebsd-questions@FreeBSD.ORG Fri Nov 22 02:02:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 352E37F9 for ; Fri, 22 Nov 2013 02:02:23 +0000 (UTC) Received: from vms173013pub.verizon.net (vms173013pub.verizon.net [206.46.173.13]) by mx1.freebsd.org (Postfix) with ESMTP id 1284A2C2E for ; Fri, 22 Nov 2013 02:02:22 +0000 (UTC) Received: from localhost.localdomain ([unknown] [96.255.10.65]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MWN00DEY6ZE2EDC@vms173013.mailsrvcs.net> for freebsd-questions@freebsd.org; Thu, 21 Nov 2013 20:02:06 -0600 (CST) Received: from localhost.localdomain (aerie [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAM221Yn018682 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 21 Nov 2013 21:02:01 -0500 Received: (from tom@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id rAM221Fo018680; Thu, 21 Nov 2013 21:02:01 -0500 Date: Thu, 21 Nov 2013 21:02:01 -0500 From: Thomas Dickey To: Rob Paisley Subject: Re: TERM / termcap / terminfo & st from suckless tools Message-id: <20131122020201.GD18511@aerie.jexium-island.net> References: <20131121142714.GA13341@rpaisley.com> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=ZJcv+A0YCCLh2VIg Content-disposition: inline In-reply-to: <20131121142714.GA13341@rpaisley.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: dickey@his.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Nov 2013 02:02:23 -0000 --ZJcv+A0YCCLh2VIg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 21, 2013 at 09:27:14AM -0500, Rob Paisley wrote: > I use st 0.4.1 from st.suckless.org as my terminal. It assigns > TERM=3Dst-256color. Accordingly I get errors running top / tmux as follow= s: >=20 > $ top > top: can't open termcap file >=20 > $ tmux > open terminal failed: can't find terminfo database >=20 > On Linux like systems, the solution is: >=20 > $ tic -s st.info actually, the file with st has a few errors in it (I saw some recent discus= sion which hinted that its developers may get around to incorporating the fixes = that I made over the past few years. > 2 entries written to /home/rpaisley/.terminfo >=20 > which is run normally via make install. On FreeBSD 9.2-RELEASE with `pkg > install ncurses` yielding version 5.9_3, the output is as follows: >=20 > $ tic -s st.info > 2 entries written to /usr/local/share/misc/terminfo.db >=20 > It didn't appear to have changed in size, so I ran the same command as ro= ot > and verified the file /usr/local/share/misc/terminfo.db did in fact chang= e, > yet I still get the errors from above for both top / tmux. top's looking in termcap.db :-) =20 > My current work around is to manually set TERM=3Dxterm-color. >=20 > I've tried various settings for TERMINFO / TERMCAP environment variables = to no > avail. How do I get st-256color recognized as a valid terminal? "man 5 termcap" mentions cap_mkdb, which is a good place to start reading --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --ZJcv+A0YCCLh2VIg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlKOuxkACgkQcCNT4PfkjtvKwQCgrvs8SuQOrfCbonjwmbosAJL3 4qIAoK7xHL293muG6b2IvZo3i8q3peZ9 =WHHr -----END PGP SIGNATURE----- --ZJcv+A0YCCLh2VIg--