TERM / termcap / terminfo & st from suckless tools
Thomas Dickey
dickey at his.com
Fri Nov 22 02:02:23 UTC 2013
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=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
actually, the file with st has a few errors in it (I saw some recent discussion
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
>
> 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.
top's looking in termcap.db :-)
> 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?
"man 5 termcap" mentions cap_mkdb, which is a good place to start reading
--
Thomas E. Dickey <dickey at invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20131121/90130b02/attachment.sig>
More information about the freebsd-questions
mailing list