From cb1e9cea1c74aa0f29038449a4c557a9a3ce5d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 21 Jul 2017 04:56:02 -0400 Subject: 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. --- 256term.csh | 25 ------------------------- 256term.sh | 26 -------------------------- Makefile | 1 - 3 files changed, 52 deletions(-) delete mode 100644 256term.csh delete mode 100644 256term.sh diff --git a/256term.csh b/256term.csh deleted file mode 100644 index c3825687..00000000 --- a/256term.csh +++ /dev/null @@ -1,25 +0,0 @@ -# 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) -set local256="$?COLORTERM$?XTERM_VERSION$?ROXTERM_ID$?KONSOLE_DBUS_SESSION" - -if ($?TERM && ($local256 || $?SEND_256_COLORS_TO_REMOTE)) then - - switch ($TERM) - case 'xterm': - case 'screen': - case 'Eterm': - setenv TERM "$TERM-256color" - endsw - - if ($?TERMCAP && ($TERM == "screen-256color")) then - setenv TERMCAP `echo $TERMCAP | sed -e 's/Co#8/Co#256/g'` - endif -endif - -unset local256 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 diff --git a/Makefile b/Makefile index 814982a1..ae113383 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,6 @@ install: install -m644 rwtab statetab networks $(ROOT)/etc install -m755 service $(ROOT)/usr/sbin install -m644 lang.csh lang.sh $(ROOT)/etc/profile.d - install -m644 256term.csh 256term.sh $(ROOT)/etc/profile.d install -m644 debug.csh debug.sh $(ROOT)/etc/profile.d install -m755 sys-unconfig $(ROOT)/usr/sbin install -m644 service.8 sys-unconfig.8 $(ROOT)$(mandir)/man8 -- cgit v1.2.1