[SLL] Screen
Ted Stern
dodecatheon at gmail.com
Fri Jan 18 11:43:06 PST 2008
I set my TERM to xterm also. But if you do this, remember to use the
-a option when starting screen. From Reading The Fine Man page:
-a include all capabilities (with some minor exceptions) in
each window's termcap, even if screen must redraw parts of
the display in order to implement a function.
-- Ted
On 18 Jan 2008 04:10:48 -0800, Will Mengarini wrote:
>
> * Mike Stunes <stunes at MIT.EDU> [2008-01-17 22:43]:
>> What I'm wondering is, is it safe to have something like this in my .zshrc:
>>
>> if [[ TERM != "screen" ]]; then
>> exec screen
>> fi
>
> In my screen sessions, TERM="xterm", because I get better color
> handling. This is configured in my .screenrc by 'term xterm'.
> If you ever did something such that starting screen did not
> guarantee TERM="screen", then your .zshrc would endless-loop.
>
> The problem with a hack like 'exec screen' is that you can
> forget about it - that's the whole point - so then you're very likely,
> years later, to try another hack like 'term xterm',
> without realizing the interactions between the two.
>
> Testing [[ -z $STY ]] is slightly safer but still very dangerous.
--
dodecatheon at gmail dot com
Frango ut patefaciam -- I break so that I may reveal
More information about the linux-list
mailing list