2014-11-29 22:23:54 +00:00
|
|
|
## ssh conservative $TERM value helper
|
2014-11-29 15:44:25 +00:00
|
|
|
|
|
|
|
Due to inconsistency of 256 color terminal support across
|
2014-11-29 22:23:54 +00:00
|
|
|
terminal applications, it may be desirable to force the
|
2014-11-29 15:44:25 +00:00
|
|
|
$TERM value to it's -256color variant.
|
|
|
|
|
|
|
|
For example, this is often accomplished in tmux by means
|
2014-11-29 22:23:54 +00:00
|
|
|
of adding the following to a tmux.conf file:
|
2014-11-29 15:44:25 +00:00
|
|
|
|
|
|
|
set -g default-terminal "screen-256color"
|
|
|
|
|
2014-11-29 22:23:54 +00:00
|
|
|
Unfortunately, remote hosts accessed via ssh may not have
|
2014-11-29 15:44:25 +00:00
|
|
|
the requisite terminfo files, and may not even allow the
|
|
|
|
user to supply them, as is often the case with network
|
|
|
|
equipment and other appliances accessible via ssh.
|
|
|
|
|
2014-11-29 22:23:54 +00:00
|
|
|
This helper strips the -256color suffix and exports a
|
2014-11-29 15:44:25 +00:00
|
|
|
regular 'screen' or 'xterm' $TERM value when setting up
|
|
|
|
a ssh connection.
|
|
|
|
|