Mailinglist Archive: opensuse (1464 mails)

< Previous Next >
Re: [opensuse] Different TERM for ssh and xterm?
On Tuesday 07 February 2012, Andreas wrote:
Hi,
can I have a different TERM setting for ssh and xterm?

For ssh (putty) I need TERM = linux to have all the linedraw signes
and F-keys working right.
In local xterms I need TERM = xterm.

Is there a way to fix this without changing TERM manually everytime I
log in or open a xterm?

Can't putty export variables somehow?

Quick and dirty you could set in ~/.profile
something like

if test -n "$SSH_TTY" ;then
export TERM=linux
fi

But do you want this if you ssh from xterm?

cu,
Rudi
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
References