X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fset_colors;h=7c991a3a295844340e580954a7a9b8ea4b20bce1;hb=5ed6aa97576a9eb55c92f92f010ddd0b135b8f9e;hp=8681d99d6e36efc1878d38d02e2c6e19a0d1d46c;hpb=6692e348877522452e26fb980b0b4c74fc375d9f;p=clearscm.git diff --git a/rc/set_colors b/rc/set_colors index 8681d99..7c991a3 100644 --- a/rc/set_colors +++ b/rc/set_colors @@ -16,12 +16,13 @@ esc=$(echo "\033") if [ "$TERM" = "vt100" -o \ "$TERM" = "vt220" ]; then - NORMAL="$esc[0m" - BOLD="$esc[1m" - UNDERLINE="$esc[4m" - BLINK="$esc[5m" - INVERSE="$esc[7m" -elif [ "$TERM" = "dtterm" -o "$TERM" = "vt100" -o "$TERM" = "xterm" -o -z DTTERM ]; then + NORMAL="$esc[0m" + BOLD="$esc[1m" + UNDERLINE="$esc[4m" + BLINK="$esc[5m" + INVERSE="$esc[7m" +elif [ "$TERM" = "dtterm" -o \ + "$TERM" = "xterm" ]; then NORMAL="$esc[39m" RED="$esc[31m" B_RED=$RED @@ -37,6 +38,23 @@ elif [ "$TERM" = "dtterm" -o "$TERM" = "vt100" -o "$TERM" = "xterm" -o -z DTTERM B_AQUA=$AQUA WHITE="$esc[36m" B_WHITE=$WHITE +elif [ "$TERM" = "xterm-256color" ]; then + NORMAL="$esc[39m" + BLACK="$esc[30m" + RED="$esc[31m" + GREEN="$esc[32m" + YELLOW="$esc[33m" + BLUE="$esc[34m" + MAGENTA="$esc[35m" + CYAN="$esc[36m" + LIGHT_GRAY="$esc[37m" + DARK_GRAY="$esc[90m" + LIGHT_RED="$esc[91m" + LIGHT_GREEN="$esc[92m" + LIGHT_YELLOW="$esc[93m" + LIGHT_MAGENTA="$esc[94m" + LIGHT_CYAN="$esc[96m" + WHITE="$esc[97m" elif [ "$TERM" = "hp" -o "$TERM" = "hpterm" ]; then NORMAL="$esc&d@$esc&v0S" RED="$esc&v1S"