Re: 256 colors - xterm, screen, slrn

Christian Ebert <[email protected]>
Newsgroups gmane.network.slrn.user
Organization Black Trash Productions <http://www.blacktrash.org/>
Message-ID <[email protected]>
* Christian Ebert on Tuesday, October 30, 2007 at 12:24:02 +0100
> * cga2000 on Monday, October 29, 2007 at 20:19:26 -0400
>> On Sat, Oct 27, 2007 at 09:08:29AM EDT, Christian Ebert wrote:
>>> 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.
> 
> That's what I resorted to as well. I don't even have to export.
> 
>> So now I have something like:
>> 
>> screen -t slrn  $SHELL -c "slrn-wrap"
> 
> screen -t slrn slrn-wrap
> 
> is sufficient here.

The following tip by JED was just posted on
news.software.readers:

screen -t slrn 1 env -u TERMCAP slrn

On Mac OS X, "env" has no "-u" option, so I changed it to:

screen -t slrn 1 env TERMCAP= slrn

No wrapper script anymore.

c
-- 
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.