Created
December 29, 2013 22:12
-
-
Save jesusangelm/8175442 to your computer and use it in GitHub Desktop.
Script para usar 256color en la terminal cuando se obtiene el error: *** VTE ***: Failed to load terminal capabilities from '/etc/termcap' reconocido como bug de VTE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable 256 color capabilities for appropriate terminals | |
# Set this variable in your local shell config if you want remote | |
# xterms connecting to this system, to be sent 256 colors. | |
# This can be done in /etc/csh.cshrc, or in an earlier profile.d script. | |
# SEND_256_COLORS_TO_REMOTE=1 | |
# Terminals with any of the following set, support 256 colors (and are local) | |
local256="$COLORTERM$XTERM_VERSION$ROXTERM_ID$KONSOLE_DBUS_SESSION" | |
if [ -n "$local256" ] || [ -n "$SEND_256_COLORS_TO_REMOTE" ]; then | |
case "$TERM" in | |
'xterm') TERM=xterm-256color;; | |
'screen') TERM=screen-256color;; | |
'Eterm') TERM=Eterm-256color;; | |
esac | |
export TERM | |
if [ -n "$TERMCAP" ] && [ "$TERM" = "screen-256color" ]; then | |
TERMCAP=$(echo "$TERMCAP" | sed -e 's/Co#8/Co#256/g') | |
export TERMCAP | |
fi | |
fi | |
unset local256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment