[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can 256color be recognized automatically?
From: |
Chris Jones |
Subject: |
Re: can 256color be recognized automatically? |
Date: |
Sat, 14 Mar 2009 05:21:46 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Sat, Mar 14, 2009 at 04:50:09AM EDT, Chris Jones wrote:
> ncl=$(tput colors)
>
> case "$ncl" in
> '16')
> TERM=screen /usr/local/bin/screen
> ;;
> '256')
> TERM=screen-256color /usr/local/bin/screen
> ;;
> esac
On second thoughts .. the above doesn't make sense..
:-(
If that were the case, screen would always inherit the contents of the
TERM variable from the underlying terminal.
Sorry for the noise.
CJ
Re: can 256color be recognized automatically?, Christian Ebert, 2009/03/14