Operating System - HP-UX
1834495 Members
3258 Online
110067 Solutions
New Discussion

Console control codes showing

 
Drew McIntosh
New Member

Console control codes showing

The console of an HP9000 shows the small CR and LF (plus other normally hidden control codes) characters causing clutter on the screen.

Without rebooting the server, is there a way to turn off these extraneous codes?

This was caused by the accidental display of binary information to STDOUT.

Any ideas would be appreciated.
Thanks,
Drew
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Console control codes showing

Hi Drew:

# stty sane

A log-out and login should also correct.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Console control codes showing

Drew,

Try "stty sane".


Pete

Pete
Ramkumar Devanathan
Honored Contributor

Re: Console control codes showing

Drew,

Try this -

$ reset

- that should reset your term.


also logout and login and that automatically resets your terminal.

hope that helps.

- ramd.
HPE Software Rocks!
Drew McIntosh
New Member

Re: Console control codes showing

To those who supplied their solutions:

I logged in as root and tried both

stty sane

and

reset

Neither had any effect. This problem continues to exist even when I log out of root and is evident on the console screen after loggin out. Seems that annoying setting is deeper rooted. Rebooting the server may be the only option unless we can come up with another solution to try.

Thanks,
Drew
melvyn burnard
Honored Contributor

Re: Console control codes showing

What console ae you using?
a 700/9x HP terminal?
if so, turn the power to the console off, hold the D key down, turn on hte power and continue to hold hte d key pressed for about 10 seconds, hten release, this should reset the terminal to defaults.
If not, use the special function keys (F1-F8) and you will find by selecting hte SYSTEM keys, you get a number of them showing things like REMOTE, FUNCTIONS etc. if one is activated, there will be a * in hte box. the ONLY one htat should have this is the REMOTE key.
Essentiall you have the console set to show Function Characters back to hte screen.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ramkumar Devanathan
Honored Contributor

Re: Console control codes showing

Drew,

# stty

outputs the following -

speed 9600 baud; evenp hupcl -cread
min = 1; intr = ^C; erase = DEL; kill = ^U;
swtch ;
brkint -inpck icrnl -ixany ixoff onlcr
-iexten echo echoe echok
-echoctl -echoke

what does stty on your terminal output? see if there's any significant difference.

- ramd.
HPE Software Rocks!
Drew McIntosh
New Member

Re: Console control codes showing

Hi all... It's me again. Isn't there a better way to reply to each of you individually? Seems wierd to reply to myself inorder to provide feed back to those offering assistance. Or do I just create a new message? (Yep I am a newbie to this forum... and it is a good one!!)

So my problem on the HP 9000 with a HP 910 terminal/monitor did not get resolved using a power off of the monitor and then holding the D key down while powering the monitor on. That just printed a couple of lines of d's across the screen, so that fix may not apply to this type of terminal. Interesting idea though.

The terminal set up as displayed by stty:

# stty
speed 9600; -parity hupcl clocal
intr = ^C; erase = ^H; kill = ^U;
eol2 = ^@; swtch = ^@;
brkint -inpck icrnl ixoff onlcr
-iexten echo echoe echok
-echoctl -echoke

So comparing this to what was provided above did show differences but based on my understanding of these settings from the man pages, I didn't see that these differences would cause the problem.

So as it turns out, someone in the know on site said that we could shutdown the system and so I did. Problem solved!

Thanks to those of you that provided those possible solutions, they will be used the next time I screw up a console window!

Dre