Re: 256 colors - xterm, screen, slrn

cga2000 <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
On Fri, Oct 26, 2007 at 08:30:49AM EDT, John E. Davis wrote:
> cga2000 <[email protected]> wrote:
> > The slsmg script displays 256 colors alright .. when I run it directly
> > on top of an xterm.
> >
> > But when I run it in a gnu/screen-managed terminal it only displays 8
> > colors (black, red, green, yellow, blue, magenta, cyan, white).
> 
> Do you have TERMCAP set in your screen environment?  If so, unset it
> as its value takes precedence over the system terminfo files.

Yes, sorry .. I vaguely remembered this from the screen mailing list
just after I posted my reply .. I just had the time to display $TERMCAP
and I saw it was initialized to - among other things what looked like
only 8 color pairs ..  I guessed that might be the problem .. but then I
didn't have the time to check the syntax of the bash "unset" builtin.

I tried "unset $TERMCAP" where it should have been "unset -v TERMCAP".

I did the latter just after I came home tonight and the script displayed
all the pretty colors I was expecting.

Now I just have to find out for what purpose screen (presumably)
initializes this variable and whether I can safely unset it  -- and then
find the proper way to do this without messing up everything.

Otherwise, I have already changed my "quote*" color entries in my
.slrnrc from the default colors to the same shades of grey, pale yellows
and golds that I use in mutt .. and not only did it work right off the
bat ... but I immediately felt a lot more comfortable with slrn.   

I feel like Santa Claus stopped by two months early this year.

:-)

Thanks,
cga

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.