From owner-freebsd-questions@FreeBSD.ORG Thu Nov 21 14:35:05 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 9D008118 for ; Thu, 21 Nov 2013 14:35:05 +0000 (UTC) Received: from smuggs.rpaisley.com (li100-179.members.linode.com [97.107.139.179]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7CA472B6B for ; Thu, 21 Nov 2013 14:35:05 +0000 (UTC) Received: by smuggs.rpaisley.com (Postfix, from userid 1000) id E3D01BDDE; Thu, 21 Nov 2013 09:27:14 -0500 (EST) Date: Thu, 21 Nov 2013 09:27:14 -0500 From: Rob Paisley To: freebsd-questions@freebsd.org Subject: TERM / termcap / terminfo & st from suckless tools Message-ID: <20131121142714.GA13341@rpaisley.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2013 14:35:05 -0000 I use st 0.4.1 from st.suckless.org as my terminal. It assigns TERM=st-256color. Accordingly I get errors running top / tmux as follows: $ top top: can't open termcap file $ tmux open terminal failed: can't find terminfo database On Linux like systems, the solution is: $ tic -s st.info 2 entries written to /home/rpaisley/.terminfo 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: $ tic -s st.info 2 entries written to /usr/local/share/misc/terminfo.db It didn't appear to have changed in size, so I ran the same command as root and verified the file /usr/local/share/misc/terminfo.db did in fact change, yet I still get the errors from above for both top / tmux. My current work around is to manually set TERM=xterm-color. I've tried various settings for TERMINFO / TERMCAP environment variables to no avail. How do I get st-256color recognized as a valid terminal?