]> git.pld-linux.org Git - packages/lesspipe.git/commitdiff
- consider xterm[-+](88|256)color understanding more colors; note: PLD
authorTomasz Pala <gotar@pld-linux.org>
Thu, 4 Jun 2009 11:03:32 +0000 (11:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  xterm is capable of 256 colors despite of tput -Txterm(-color) colors
  returning only 8; other xterms may be unhappy with this but there's no
  way to recognize true capabilities; if someone runs into problems or his
  terminal disagree with those assumptions just use some other value, like
  xterm-16color (or simply don't install highlight)

Changed files:
    lesspipe.sh -> 1.40

lesspipe.sh

index 8dbbddd90750b9dcc54c8d7f24c4ba4286835853..43aed826e84727dcaf2a10a1d2bb91490dee4bfb 100644 (file)
@@ -79,7 +79,7 @@ lesspipe() {
                fi
                ;;
        *) case $TERM in
-               xterm|xterm-color)      output=xterm256;;
+               xterm|xterm-color|xterm*88color|xterm*256color) output=xterm256;;
                *)                      output=ansi;;
           esac
                run-mailcap "$1" || \
This page took 0.046382 seconds and 4 git commands to generate.