TERM env var

alex dyas adyas at twowaytv.co.uk
Fri May 17 08:55:07 BST 2002

Jonathan Perkin wrote:
> On Thu May 16, 2002 at 07:51:18PM +0100, Jose Marques wrote:
>>On Thu, 16 May 2002, alex dyas wrote:
>>>I have TERM set to xterm-color on my desktop machine.  I get problems
>>>when I telnet to machines that don't understand this, and keep having to
>>>set it to xterm when I get there.  How do I stop the TERM var getting
>>>transmitted by my telnet session, or set a different one for the remote
>>>machines?  There are too many remote machines to change their profiles
>>Don't use telnet it's insecure.  Quick hack:
>># env TERM=xterm ssh myhost
> If using ssh, use ~/.ssh/environment

unfortunately the environment in which I'm working does not allow me to 
dictate the use of ssh instead of telnet.

however, your suggestion lead me to find out that telnet has an rc file, 
and hey presto a solution.  in my .telnetrc file :

DEFAULT environ define TERM xterm

thanks :)


More information about the Ukfreebsd mailing list