From 8d627ea4b403a8c291b3b26e5bf42af147da8717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Wed, 8 Aug 2012 21:56:17 +0100 Subject: Enable 256 color terminals by default --- term256.csh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 term256.csh (limited to 'term256.csh') diff --git a/term256.csh b/term256.csh new file mode 100644 index 00000000..1197512c --- /dev/null +++ b/term256.csh @@ -0,0 +1,27 @@ +# Enable 256 color capabilities for appropriate terminals + +# Uncomment this if you want remote xterms connecting +# to this system, to be sent 256 colors. Note that +# local xterms, ssh'ing to localhost are considered +# remote in this context, but in that case, $TERM should +# have already been set to 256 color capable. +# 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 -- cgit v1.2.1 From c819f195a35a06ec2c0c14c3a7f7330a0c170c32 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 14 Sep 2012 16:10:41 -0400 Subject: Don't suggest modifying the packaged files. --- term256.csh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'term256.csh') diff --git a/term256.csh b/term256.csh index 1197512c..91547d0f 100644 --- a/term256.csh +++ b/term256.csh @@ -1,10 +1,8 @@ # Enable 256 color capabilities for appropriate terminals -# Uncomment this if you want remote xterms connecting -# to this system, to be sent 256 colors. Note that -# local xterms, ssh'ing to localhost are considered -# remote in this context, but in that case, $TERM should -# have already been set to 256 color capable. +# 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) -- cgit v1.2.1