term question

Discuss Applications
Post Reply
worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

term question

Post by worker201 »

Currently, my term environment variable is set to "xterm-color", which seems to work well for me. However, when I telnet to a remote server, it doesn't like that terminal type. Setting term to "unknown" solves the problem with the remote server, but it still won't let me open pine. But, if I set term to "vt100", then everything is fine and dandy, and pine opens and everything.

So, the question is: is there anyway to use my .cshrc files to set the terminal type to vt100 when I give a telnet command, and then switch back afterwards? That would be the ideal situation, having this process automated.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Usually you set your TERM variable on the remote server and you can put the logic in your login profile to set your TERM variable to what you need. I'm surprised "xterm" wouldn't be the TERM setting you would want.

worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Post by worker201 »

So I can add "setenv TERM xterm" to my .cshrc on the remote server? Cool. I'll have to try that.

Post Reply