home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10306 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.2 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!sdd.hp.com!swrinde!news.dell.com!milano!cactus.org!wixer!rhodesia
  2. From: rhodesia@wixer.cactus.org (Felix S. Gallo)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Scrambled fonts anyone?
  5. Keywords: pcomm, fonts
  6. Message-ID: <1992Sep9.175845.21742@wixer.cactus.org>
  7. Date: 9 Sep 92 17:58:45 GMT
  8. References: <1992Sep9.015006.26428@umr.edu> <q+snt5b.harp@netcom.com>
  9. Sender: rhodesia@wixer.cactus.org
  10. Reply-To: rhodesia@wixer.UUCP (Felix S. Gallo)
  11. Followup-To: poster
  12. Organization: Real/Time Communications
  13. Lines: 51
  14.  
  15. In article <q+snt5b.harp@netcom.com> harp@netcom.com (Gregory O. Harp) writes:
  16. >dminer@mcs213f.cs.umr.edu (Dan Miner) writes:
  17. >
  18. >>I used to reboot, but it has been getting worst.  Anyway, to
  19. >>stop or restore the font?  (Plain text)
  20. >
  21. >You're going to think I'm nuts, but try 'cat /bin/ls'.  I'm using the
  22. >ls from the MCC-Interim 0.97pl2 distribution, and it happens to
  23. >contain the right sequence of codes to reset the console.
  24.  
  25. ew.  ew ew ew.
  26.  
  27. >How did I discover this?  Don't ask.  
  28.  
  29. >Suggestion to the person who wrote/maintains the 'setterm' program:
  30. >Please add such a reset feature to your program.  Perhaps it already
  31. >has one, but since I don't have a man page for it (nor can I find one)
  32. >I haven't found it.  'setterm -reset' and 'setterm -initialize' don't
  33. >solve the problem.
  34.  
  35. setterm -reset works for me.  But here's the definitive clue:
  36.  
  37. the virtual terminals emulate vt102 terminals, as per their termcap
  38. entry.  The vt102 'complete terminal reset' command is (ESC)c.  Just
  39. echo that sequence in a printable fashion and you're set.  Here's the
  40. easiest way:
  41.  
  42. % cat
  43. (ESC)c(RETURN)
  44. ^D
  45. %
  46.  
  47. here is the slightly sexier way:
  48.  
  49. % cat > /usr/local/bin/fixterm
  50. #!/bin/sh
  51. echo "(CONTROL-V)(ESC)c"
  52. ^D
  53. %
  54.  
  55. and then use fixterm whenever you get into the problem again.
  56. >-- 
  57. >-----------------Greg-Harp----------------harp@netcom.com------------------
  58. >  Love me, love my ferrets.               "Break out of the mold before
  59. >  Or at least love my ferrets. ;)          the mold sets in" -- B52's
  60.  
  61.  
  62. -- 
  63. ----------------------------------------------------------------------------
  64. Felix Sebastian Gallo                              rhodesia@wixer.cactus.org
  65. ----------------------------------------------------------------------------
  66.