home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21351 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.5 KB

  1. 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
  2. From: sdh@po.CWRU.Edu (Scott D. Heavner)
  3. Newsgroups: comp.os.linux
  4. Subject: ANSWER: Screwy characters after accidentally typing a binary?
  5. Date: 22 Dec 1992 04:15:23 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 66
  8. Message-ID: <1h64orINN2m7@usenet.INS.CWRU.Edu>
  9. Reply-To: sdh@po.CWRU.Edu (Scott D. Heavner)
  10. NNTP-Posting-Host: thor.ins.cwru.edu
  11.  
  12.  
  13.     Here is a summary of the responses I received when I asked
  14. how to recover your original character set after accidentally typing
  15. a binary or if Kermit spits something strange at you.  I've found
  16. the _first_ one to be the best for two reasons:
  17.  
  18.     1) It works (not all the others worked for my terminal type
  19.                      and I did not have the reset command which was
  20.                      suggested)
  21.  
  22.     2) It's short + simple.
  23.  
  24.     Thanks to all who replied.
  25.  
  26. ----------
  27. From: stuckey@mrcnext.cso.uiuc.edu (Anthony J. Stuckey)
  28. also From: "Richard D. Yentis" <ryentis@seas.gwu.edu>
  29. >
  30. >    echo "^V^O"
  31. >
  32. >    control-V should be the "literal next" character, and ^O is some 
  33. >mystic VT100 control sequence that switches back int oalpha.
  34. ----------
  35. From: nobody@Kodak.COM (Brian K. Talley)
  36. >
  37. >When you inadvertantly screw up your CLI, type the command reset at the
  38. >prompt.  This will reset your terminal settings (for a VC as well).
  39. ----------
  40. From hutchinson@wrair-emh1.army.mil Mon Dec 21 02:08:40 1992
  41. >
  42. >The escape sequence to reset a VC is ESC-c.  If you're running bash, 
  43. >
  44. > echo -e '\33c'
  45. >
  46. >will fix it.  I'm not sure about the syntax for other shells, but they
  47. >all should have something similar.  This is a good candidate for an
  48. >alias if you do it alot (like I do).
  49. ----------
  50. From: Kurt Hockenbury <KHOCKENBURY@VAXC.STEVENS-TECH.EDU>
  51. >
  52. >This is a FAQ.  Under bash, try clearing the screen by typing "echo ^v<ESC>c", 
  53. >where ^v is control-v and <ESC> is your escape key.  This is the vt100 clear 
  54. >terminal sequence.
  55. ----------
  56. From: ed@orca.wimsey.bc.ca (Ed Rodda)
  57. >
  58. >echo "\133\126\033\143"
  59. ----------
  60. From: jsp@math.ksu.edu (Jeff S. Pihl)
  61. >
  62. >Try this:
  63. >
  64. >Save this to a file ( /usr/local/bin/reset )
  65. >Edit it, and replace the ^O and ^[ with embeded control characters.
  66. >(If you're using vi, type "i ctrl-v ctrl-O <esc>" to embed a ^O into the text)
  67. >chmod 755 /usr/local/bin/reset
  68. >run it when you need to.
  69. >
  70. -------8<-----snip------8<-----
  71. #!/bin/sh
  72. echo ^O^[[r
  73. clear
  74. -------8<-----snip------8<-----
  75.  
  76. -- 
  77. HELP! I'm being held prisoner in a .sig file factory.
  78.