Sonia Hamilton <[EMAIL PROTECTED]> 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



_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to