Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TERM=LINUX 2

Status
Not open for further replies.

nhasian

MIS
Apr 30, 2001
5
US
when I type 'set' on a shell prompt in redhat 7.1, a list is displayed and TERM=LINUX is a value.
I want to change the value to TERM=VT100. What file do I need to modify to accomplish this?
Thanks in advance
 
I edited my .bashrc_profile and added the TERM=VT100 line.
Now I can't use vi to edit a file because it says VT100 is not valid. Doh.
 
set TERM=VT100
or
setenv TERM VT100
or
TERM=VT100
export TERM

depending on your shell.

you have type this:

/bin/vi .bashrc_profile
to edit your profile. Emagine Solutions, Inc.
 
Why do you need vt100?
if it is the console would ansi do?
if it is a real vt terminal session why not vt220?

any environment variable can be reset at the command prompt and then `export`ed to the parent process|shell.

just my 2cents
 


To set for a single user:
TERM=vt100 ; export TERM
can be put in the .profile of
the user's home directory. To set it globally for all users (including root) put it
in /etc/profile. /etc/profile is executed before the users .profile files. If you are
using bash the individual user's profile may be called .bash_profile in the user's home directory.

You need to export the environment variable for it to be available to child shells that are spawned (you proabably want this).

vt100 is fairly generic. It use to refer to a specific brand of terminal (15-20 years ago) but is now generic to many types including telnet type terminal emulator programs. It's usually a good first choice to try if your display is acting funny. It's always worked for me. Hope that helps.
 
You can use export TERM=vt100 for a one line command as long as you are using the bash shell. However, the system will look for a termcap entry or a termio entry for vt100 depending upon your software needs. Termcap has become arcane, replaced by the termio information. The ncurses library uses the termio. The problem is distributions like Mandrake 7.2 didn't seem to think the termio entries were necessary because they were not included.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top