screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: screen, 256color mode and ssh


From: Trent W . Buck
Subject: Re: screen, 256color mode and ssh
Date: Thu, 31 Jan 2008 01:59:04 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Sonia Hamilton <address@hidden> writes:
> On Fri, 2008-01-25 at 22:27 +0100, Mika Fischer wrote:
> > Another problem is that I sync my configuration files for bash, screen,
> > etc. via SVN. Since my .screenrc contains the "term screen-256color"
> > line it won't work very well on systems where this terminfo entry is not
> > installed. Screen will revert to vt100 in this case.
> > 
> > Is there a possibility to set the "screen-TERM" only to screen-256color
> > if it's available, or is there a possibility to divide the screen
> > configuration, so that I could only use this on my local host and not on
> > the others? Or is there another way out of this mess?
> 
> A 'dirty hack' way of doing these would be to detect in the
> remote .bashrc the system, and swap to a different .screenrc

Specifically, something like this:

if ! tput longname >/dev/null 2>/dev/null
then case "$TERM" in
       screen.*|screen-*) TERM=screen;;
       xterm-*) TERM=xterm;;
     esac
fi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]