1834187 Members
2856 Online
110064 Solutions
New Discussion

Console display

 
SOLVED
Go to solution
Judy Halter
Occasional Advisor

Console display

I have a problem with the console display on my two HP-UX servers running 11.0. I have put off trying to resolve this issue and could not really tell you when it started. (I know how to spell HP but am still learning how to spell UNIX!)

When I log in at the console, the login is successful, then then the screen fills with what appears to be previously run commands. TERM is set to vt220 and DISPLAY is not set. Is there a 'clear' command I can use or is there some other way I can set a variable differently to resolve this problem?

Your assistance is requested - thanks in advance.

Judy Halter
7 REPLIES 7
Alex Lavrov.
Honored Contributor

Re: Console display

export TERM=hp
clear


This should clear the screen.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
melvyn burnard
Honored Contributor
Solution

Re: Console display

yes, there is a comand named clear
man clear

It appears your profile may be set incorrectly, or something has been setup to sho wthese commands.

One way to manually do this is issue the folowing (if you know your terminal type)

export TERM=vt100 (replace vt100 with your terminalt type)
tset
clear


Or I usually use:
eval `ttytype -s`
tset
clear

Note the single BACK quotes in the eval command
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Alex Lavrov.
Honored Contributor

Re: Console display

Sorry, its:

export TERM=hpterm
clear


(zero to previous reply plz)


Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Torsten.
Acclaimed Contributor

Re: Console display

Hi Judy,

the terminal capabilities have to match the terminal settings, e.g. if you are using a vt100 terminal emulation, the TERM have to set to vt100. Example:

server/ (rem) #ttytype
vt100
server/ (rem) #export TERM=vt100
server/ (rem) #

The "clear" command is named "clear" ;-))

Regards
Torsten

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Blofeld
Advisor

Re: Console display

Judy
log in and
export TERM=hpterm
then execute
clear
DCE
Honored Contributor

Re: Console display

Judy,

When you log into the console, you are logging into an ASCII device. It will only display characters. The DISPLAY variable is for use with a graphics disply, and not necessary with the console. The most common type of console is hpterm. I would suggest setting your TERM variable to that, and see if it displays properly.

As other have mentioned clear will clear the screen

Dave
Judy Halter
Occasional Advisor

Re: Console display

Thanks to everyone for their replies. I modified the /.profile to set TERM = hpterm, export TERM, then put the clear command at the bottom. Works great!