aboutsummaryrefslogtreecommitdiffstats
path: root/256term.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-07-21 04:56:02 -0400
committerDee'Kej <deekej@linuxmail.org>2017-07-21 15:16:35 +0200
commitcb1e9cea1c74aa0f29038449a4c557a9a3ce5d89 (patch)
tree47deb7201a4220d7fdec2e94c9653fb9f4e404e5 /256term.sh
parenta5361886ac6d7b0b72ea5765b175a96a4521dc2a (diff)
downloadinitscripts-cb1e9cea1c74aa0f29038449a4c557a9a3ce5d89.tar
initscripts-cb1e9cea1c74aa0f29038449a4c557a9a3ce5d89.tar.gz
initscripts-cb1e9cea1c74aa0f29038449a4c557a9a3ce5d89.tar.bz2
initscripts-cb1e9cea1c74aa0f29038449a4c557a9a3ce5d89.tar.xz
initscripts-cb1e9cea1c74aa0f29038449a4c557a9a3ce5d89.zip
Drop 256term.{sh,csh}
From https://fedoraproject.org/wiki/Changes/Drop_256term.sh: This is a work-around and it's better to for the terminal emulator to set $TERM properly on its own. Various terminal emulators have been updated to do that. When those scripts are removed, whatever the virtual terminal or terminal emulator sets as $TERM will be used. Fixes #107. C.f. https://bugzilla.redhat.com/show_bug.cgi?id=1165439.
Diffstat (limited to '256term.sh')
-rw-r--r--256term.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/256term.sh b/256term.sh
deleted file mode 100644
index 546f67bc..00000000
--- a/256term.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-# Enable 256 color capabilities for appropriate terminals
-
-# Set this variable in your local shell config (such as ~/.bashrc)
-# if you want remote xterms connecting to this system, to be sent 256 colors.
-# This must be set before reading global initialization such as /etc/bashrc.
-# 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