Operating System - HP-UX
1820100 Members
3479 Online
109608 Solutions
New Discussion юеВ

how to set $TERM, where does the default xterm come from

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

how to set $TERM, where does the default xterm come from

I have a box where TERM is being set to xterm and I cant figure out how it is happening. vi wont work with xterm as the term type.

Sure I can hardcode TERM=vt100, but I'd like to understand where my /etc/profile and .profile are getting the value of "xterm" .

That word doesn't appear in either file and I dont see where it is getting sourced from.


Regards,

Todd A McDaniel
Unix, the other white meat.
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: how to set $TERM, where does the default xterm come from

Hi Todd:

See 'tset' : man tset(1)'

Regards!

...JRF...
Arturo Galbiati
Esteemed Contributor

Re: how to set $TERM, where does the default xterm come from

Hi,
If I well remember (I don't have access to Unix now) try:
export TERM=
export TERM=vt100
eval $(ttype -s)

this will set the correct environment.
HTH,
Art
Wouter Jagers
Honored Contributor

Re: how to set $TERM, where does the default xterm come from

Hiya,

Which client are you using to connect ? I've noticed these often set the TERM variable for you..

My dear old putty client, for example, will set TERM to xterm by default.

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Todd McDaniel_1
Honored Contributor

Re: how to set $TERM, where does the default xterm come from

Wouter,

Yea I am using putty, but when I login, I su - root so I guess it is taking my env variables from my user settings.

Where can I change the default in putty?
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: how to set $TERM, where does the default xterm come from

Oh nm, I found it in the putty tool.

Thanks.


Regards,

Todd A McDaniel
Unix, the other white meat.
Wouter Jagers
Honored Contributor

Re: how to set $TERM, where does the default xterm come from

In the version I currently use (0.59), I can set it in Connection --> Data --> Terminal-type string.

See attached screenshot.

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Wouter Jagers
Honored Contributor

Re: how to set $TERM, where does the default xterm come from

Oops, these posts must have crossed. Glad to see all is ok !
an engineer's aim in a discussion is not to persuade, but to clarify.