Re: 256 colors - xterm, screen, slrn

cga2000 <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
On Sat, Oct 27, 2007 at 09:08:29AM EDT, Christian Ebert wrote:

[..]

> > and then find the proper way to do this without messing up
> > everything.
> 
> Quite problematic according to my investigations; my dirty
> workaround ATM:
> 
> bashrc:
> if [ -n "$STY" ]
>     unset TERMCAP
>     export TERMCAP
> fi
> 
> screenrc:
> term "xterm-256color"
> bind S screen -t slrn 1 bash -l -c slrn
> #                       ^^^^^^^ force login
> 
> If someone has this working in a more elegant way, I'd be curious
> to know about it.

Not sure it's more "elegant" but I put yet another bash wrapper in my
~/bin directory that unsets & exports TERMCAP and then invokes slrn.

So now I have something like:

screen -t slrn  $SHELL -c "slrn-wrap"

.. instead of 

screen -t slrn  $SHELL -c "slrn -h wherever.net"

My impression is that the reason screen generates this termcap stuff is
just to insure that it is available to applications that still use
termcap rather than terminfo.

???

In any event if you're interested, I have put up a few 256-color
screenshots of my minimal but quite functional "desktop" at:

http://www.geocities.com/fcky1000/fckz

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.