How to find the valid values for TERM to use in tmux

terminaltmux

When starting tmux I need to pass a valid terminal type. Since I am scripting the initial startup of tmux I would like to cover all bases by figuring out the valid values of TERM on the current system.

How do I find valid values to use for tmux and which order, including a possible 16 color fallback, should I prefer?

This is mainly for Linux systems, but I presume the approach would be similar on most other unixoids.

Best Answer

The toe command will show you the terminfo definitions on the current system. If you lack that command, you see the raw data in /usr/share/terminfo on most Linux systems.

Related Question