Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2013 09:27:14 -0500
From:      Rob Paisley <>
Subject:   TERM / termcap / terminfo & st from suckless tools
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
I use st 0.4.1 from 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
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
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?

Want to link to this message? Use this URL: <>