home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!gumby!yale!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!daemon
- From: f6930910@scheme.cs.ubc.ca
- Subject: catting binaries
- Message-ID: <1992Jul31.044152.18121@athena.mit.edu>
- Sender: daemon@athena.mit.edu (Mr Background)
- Reply-To: f6930910@scheme.cs.ubc.ca
- Organization: The Internet
- Date: Fri, 31 Jul 1992 04:41:52 GMT
- Lines: 24
-
- Hi. Here is something for you to try at home. I often go looking
- for stuff in directories by using 'grep stuff *'. This is not
- really all that bright of me, because sometimes stuff happens to be
- in an executable or library or other such binary in that directory,
- in which case my screen gets rapidly filled with binary nonsense.
-
- The wierd thing is that sometimes (not allways), after all the
- garbage has been cat(ed) to the screen, the terminal is left in
- a state such that all characters echoed to the screen are displayed
- as IBM extended graphics characters. This does not allways happen, but
- usually does. To see this, just cat a few of your favorite binaries
- to stdout.
-
- My question then becomes: How do I get the terminal back into a
- normal state? stty sane < /dev/tty1 > /dev/tty1 does no good.
- Why would this happen anyway? BTW, catting a binary in an xterm
- never seems to do any harm -- only when on a virtual console.
-
- I am using 0.96cp2, the new setterm, etc, etc..
-
- Many thanks. Even a "it sure doesn't do that on my machine" would
- be helpful.
-
- -Ken
-