home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!think.com!spool.mu.edu!agate!usenet.ins.cwru.edu!po.CWRU.Edu!sdh
- From: sdh@po.CWRU.Edu (Scott D. Heavner)
- Newsgroups: comp.os.linux
- Subject: ANSWER: Screwy characters after accidentally typing a binary?
- Date: 22 Dec 1992 04:15:23 GMT
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- Lines: 66
- Message-ID: <1h64orINN2m7@usenet.INS.CWRU.Edu>
- Reply-To: sdh@po.CWRU.Edu (Scott D. Heavner)
- NNTP-Posting-Host: thor.ins.cwru.edu
-
-
- Here is a summary of the responses I received when I asked
- how to recover your original character set after accidentally typing
- a binary or if Kermit spits something strange at you. I've found
- the _first_ one to be the best for two reasons:
-
- 1) It works (not all the others worked for my terminal type
- and I did not have the reset command which was
- suggested)
-
- 2) It's short + simple.
-
- Thanks to all who replied.
-
- ----------
- From: stuckey@mrcnext.cso.uiuc.edu (Anthony J. Stuckey)
- also From: "Richard D. Yentis" <ryentis@seas.gwu.edu>
- >
- > echo "^V^O"
- >
- > control-V should be the "literal next" character, and ^O is some
- >mystic VT100 control sequence that switches back int oalpha.
- ----------
- From: nobody@Kodak.COM (Brian K. Talley)
- >
- >When you inadvertantly screw up your CLI, type the command reset at the
- >prompt. This will reset your terminal settings (for a VC as well).
- ----------
- From hutchinson@wrair-emh1.army.mil Mon Dec 21 02:08:40 1992
- >
- >The escape sequence to reset a VC is ESC-c. If you're running bash,
- >
- > echo -e '\33c'
- >
- >will fix it. I'm not sure about the syntax for other shells, but they
- >all should have something similar. This is a good candidate for an
- >alias if you do it alot (like I do).
- ----------
- From: Kurt Hockenbury <KHOCKENBURY@VAXC.STEVENS-TECH.EDU>
- >
- >This is a FAQ. Under bash, try clearing the screen by typing "echo ^v<ESC>c",
- >where ^v is control-v and <ESC> is your escape key. This is the vt100 clear
- >terminal sequence.
- ----------
- From: ed@orca.wimsey.bc.ca (Ed Rodda)
- >
- >echo "\133\126\033\143"
- ----------
- From: jsp@math.ksu.edu (Jeff S. Pihl)
- >
- >Try this:
- >
- >Save this to a file ( /usr/local/bin/reset )
- >Edit it, and replace the ^O and ^[ with embeded control characters.
- >(If you're using vi, type "i ctrl-v ctrl-O <esc>" to embed a ^O into the text)
- >chmod 755 /usr/local/bin/reset
- >run it when you need to.
- >
- -------8<-----snip------8<-----
- #!/bin/sh
- echo ^O^[[r
- clear
- -------8<-----snip------8<-----
-
- --
- HELP! I'm being held prisoner in a .sig file factory.
-