Couldn't we enable 256 colors by default on TERM?

Michael Stahl mstahl at redhat.com
Wed Jun 27 09:26:15 UTC 2012


On 26/06/12 18:45, Miloslav Trmač wrote:
> On Tue, Jun 26, 2012 at 3:24 AM, Matthew Garrett <mjg59 at srcf.ucam.org> wrote:
>> We discussed this in fesco today and had a couple of concerns.
> 
> Another one is that connecting to systems that don't support xterm-256
> is not quite easy.  In particular, there appears to be no way to
> configure ~/.ssh/config so that "ssh oldhost" (and "ssh oldhost
> arbitrarycommand") transparently changes the TERM value - one would
> have to set up shell functions or something similar.  An extension of
> the ssh would be very nice - and failing that, an explicit recipe how
> to override TERM correctly would be welcome as well.

heh, that's exactly why this cruft ended up in my .bashrc  :)

>     # "xterm" does not support color on solaris
>     # https://defect.opensolaris.org/bz/show_bug.cgi?id=1641
>     case $(uname -s) in
>         SunOS)
>             case $TERM in
>                 xterm)
>                     TERM=xtermc
>                     ;;
>             esac
>             ;;
>         # but only Solaris knows "xtermc"
>         *)
>             case $TERM in
>                 xtermc)
>                     TERM=xterm
>                     ;;
>             esac
>             ;;
>     esac

and that is just to get any colors at all...



More information about the devel mailing list