- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: strange characters in terminal ( reset termina...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 04:06 AM
тАО08-14-2001 04:06 AM
you know when you cat a binary file and it messes up your terminal.. well, usually I just log out and log back in, but was wondering if there was a better way to clear it up.
I tried the reset command and resourcing profile but was still getting strange characters when typing.
Sometimes too I get a block capital problem that I can only solve by logging out and relogging back in. Is it the getty that's messed up or terminal settings?.. and why!?
Later,
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 04:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 04:26 AM
тАО08-14-2001 04:26 AM
Re: strange characters in terminal ( reset terminal )
JRF is right, i did the same "stty sane" when i was facing this problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 04:30 AM
тАО08-14-2001 04:30 AM
Re: strange characters in terminal ( reset terminal )
Thanks,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 09:33 AM
тАО08-14-2001 09:33 AM
Re: strange characters in terminal ( reset terminal )
A lot of times control-L will clean the screen.
Your problem is an ascii character went to the screen that the terminal could not display correctly. So your session decides to use a terminal type of vt100 or ANSI.
You can try this. It may not work.
While your screen is gobly-gook...
stty sane (the other guys are right)
TERM=vt100;export TERM
control-L
clear
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 09:59 AM
тАО08-14-2001 09:59 AM
Re: strange characters in terminal ( reset terminal )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 10:17 AM
тАО08-14-2001 10:17 AM
Re: strange characters in terminal ( reset terminal )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 01:33 PM
тАО08-14-2001 01:33 PM
Re: strange characters in terminal ( reset terminal )
What often happens to me is the escape sequence for setting a graphics (line draw) font is echoed to the terminal (because it just happened to be in the file I was cat'ing). That particular sequence is "Esc(0" which can be reset with "Esc(B".
Try typing this in a terminal:
echo "\033("0
echo "\033("B
The first (that's a zero on the end) will set line draw. The second will set you back in ascii mode. You won't be able to tell what you're typing on the second line unless you can read line draw stuff.
This works for me in xterm, dtterm, and vt100 sessions. And since xterm and vt100 don't give me a menu option for a reset it sometimes comes in handy.
Lots of other "useless" escape sequences are listed in the dtterm terminal emulation help screen.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 06:00 PM
тАО08-14-2001 06:00 PM
Re: strange characters in terminal ( reset terminal )
The best way to reset the terminal is to use the tput command as in: tput reset. tput is not well known but it handles the hundreds of differences between different types of terminals. tput reset save a lot of clicking on terminal emulators to get them reset, or on-screen configs for real terminals.
It's not a bad idea to put tput reset into /etc/profile and /etc/csh.login files. Be sure to protect tput and programs like stty and ttytype so they don't get executed when there is no controlling tty (like a cron job).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2001 07:16 AM
тАО08-15-2001 07:16 AM
Re: strange characters in terminal ( reset terminal )
To Bill Hassell: could you provide some more info on using "tput reset"? It does something to my terminal session though I can't tell what. It returns my prompt after about 2 seconds but it's the same as before the command. That is, if my session is set to use line draw characters (either from Esc(0 or Ctrl N) it is still in that mode after "tput reset".
Thanks,
Darrell