1832021 Members
3172 Online
110034 Solutions
New Discussion

Simple TERM Problem

 
Mike Hassell
Respected Contributor

Simple TERM Problem

Hello All,

I have what I think is an easy problem to fix, but I've been unable to find the info needed to do so. I have multiple HP-UX 10.20/11.0 boxes that I telnet into from a RH Linux workstation. The problem I'm having is in regards to my TERM settings. I'm using KDE with their default terminal and telnetting into the HP-UX boxes and issuing:

stty erase "^?"

To take care of my backspace problem. For some reason I can't seem to keep the default stty erase "^H" as well as my new "^?" on the same command line.

Now my problem occurs when I'm trying to do a 'more' on a simple text file. I see the percentage status at the bottom of the screen, but I don't see any text. I unset the TERM variable and set it to 'ansi' or 'vt100' or even 'vt220', with no difference.

What should TERM be set to when telnetting in from a Linux box running KDE? Any ideas? I have having to edit files with 'pico' just to view their contents :) Thanks.

- Mike
The network is the computer, yeah I stole it from Sun, so what?
4 REPLIES 4
Ravi_8
Honored Contributor

Re: Simple TERM Problem

Hi,
set the TERM value to defualt hp
#export TERM=hp
never give up
John Poff
Honored Contributor

Re: Simple TERM Problem

Hi,

I do most of my work from a Linux desktop machine. I run Gnome and telnet to all my HP boxes, and my term is set to 'xterm'. It gets set when I telnet in. Maybe there is a problem in your .profile?

JP
Barry O Flanagan
Respected Contributor

Re: Simple TERM Problem

Try this when you log in:

eval `ttytype -s`

... or stick it into your .profile . ttytype appears to try to detect the terminal type and the -s option will make it print appropriate values for environment variables for that term. It should do things like set TERM, ERASE etc...
Shahul
Esteemed Contributor

Re: Simple TERM Problem

Hi

U can set TERM variable and erase charecter in /etc/profile file. set like this

TERM=vt220;export TERM
ERASE="^H";export ERASE

Best of luck

Shahul