]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - config/profile.d/term256.sh
firewall: Resurrect port forwardings with different external ports.
[people/teissler/ipfire-2.x.git] / config / profile.d / term256.sh
CommitLineData
b21b0df6
MT
1# Enable 256 color capabilities for appropriate terminals
2
3# Set this variable in your local shell config (such as ~/.bashrc)
4# if you want remote xterms connecting to this system, to be sent 256 colors.
5# This must be set before reading global initialization such as /etc/bashrc.
6# SEND_256_COLORS_TO_REMOTE=1
7
8# Terminals with any of the following set, support 256 colors (and are local)
9local256="$COLORTERM$XTERM_VERSION$ROXTERM_ID$KONSOLE_DBUS_SESSION"
10
11if [ -n "$local256" ] || [ -n "$SEND_256_COLORS_TO_REMOTE" ]; then
12
13 case "$TERM" in
14 'xterm') TERM=xterm-256color;;
15 'screen') TERM=screen-256color;;
16 'Eterm') TERM=Eterm-256color;;
17 esac
18 export TERM
19
20 if [ -n "$TERMCAP" ] && [ "$TERM" = "screen-256color" ]; then
21 TERMCAP=$(echo "$TERMCAP" | sed -e 's/Co#8/Co#256/g')
22 export TERMCAP
23 fi
24fi
25
26unset local256