1847076 Members
5414 Online
110262 Solutions
New Discussion

Terminal Problems?

 
SOLVED
Go to solution
Rob Smith
Respected Contributor

Terminal Problems?

Hello All,

I have a new box, actually it's used but freshly installed, anyway, when I log on it says it cannot recognize my terminal type, something like "70098 Not Recognized," So I set the TERM variable from the command line to vt220. When I go into vi or sam the screen fills up with garbage and bombs out my session. I am working from the console when this happens. I know I am missing something simple.

Many TIA's
Robert Smith
Learn the rules so you can break them properly.
4 REPLIES 4
Kofi ARTHIABAH
Honored Contributor

Re: Terminal Problems?

try :

export TERM=hp
vi the file...

nothing wrong with me that a few lines of code cannot fix!
James R. Ferguson
Acclaimed Contributor

Re: Terminal Problems?

Robert:

To find out what the device thinks it is, do:

# ttytype -a

You should be able to set TERM=70098

...JRF...
Trevor Dyson
Trusted Contributor
Solution

Re: Terminal Problems?

Hi Robert,

Looks like your terminal is a hp 700/98. The default mode of these terminals is HP compatible not vt/ansi compatible, thats why you saw the garbage when setting the TERM variable to vt220.

The message "70098 Not Recognized" is caused by there being no entry for this terminal in the /usr/lib/terminfo/7 directory.

I believe the 700/92/94/96/98 terminals are pretty similar so you can probably fix this problem by copying:

/usr/lib/terminfo/7/70092

to

/usr/lib/terminfo/7/70098

Regards, Trevor
I've got a little black book with me poems in
Dan Hetzel
Honored Contributor

Re: Terminal Problems?

Hi,

If you're running a posix, bourne or Korn shell, type the following:

export TERM=hp

You could add the preceeding line in your $HOME/.profile file

If you're running a c-shell (csh), type the following:

setenv TERM hp

once again, you could add this line in your $HOME/.login file

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com