From: rhodesia@wixer.cactus.org (Felix S. Gallo) Subject: Re: Scrambled fonts anyone? Date: Wed, 9 Sep 1992 17:58:45 GMT
In article <q+snt5b.harp@netcom.com> harp@netcom.com (Gregory O. Harp) writes:
>dminer@mcs213f.cs.umr.edu (Dan Miner) writes:
>
>>I used to reboot, but it has been getting worst. Anyway, to
>>stop or restore the font? (Plain text)
>
>You're going to think I'm nuts, but try 'cat /bin/ls'. I'm using the
>ls from the MCC-Interim 0.97pl2 distribution, and it happens to
>contain the right sequence of codes to reset the console.
ew. ew ew ew.
>How did I discover this? Don't ask.
>Suggestion to the person who wrote/maintains the 'setterm' program:
>Please add such a reset feature to your program. Perhaps it already
>has one, but since I don't have a man page for it (nor can I find one)
>I haven't found it. 'setterm -reset' and 'setterm -initialize' don't
>solve the problem.
setterm -reset works for me. But here's the definitive clue:
the virtual terminals emulate vt102 terminals, as per their termcap
entry. The vt102 'complete terminal reset' command is (ESC)c. Just
echo that sequence in a printable fashion and you're set. Here's the
easiest way:
% cat
(ESC)c(RETURN)
^D
%
here is the slightly sexier way:
% cat > /usr/local/bin/fixterm
#!/bin/sh
echo "(CONTROL-V)(ESC)c"
^D
%
and then use fixterm whenever you get into the problem again.
>--
>-----------------Greg-Harp----------------harp@netcom.com------------------
> Love me, love my ferrets. "Break out of the mold before
> Or at least love my ferrets. ;) the mold sets in" -- B52's
-- ============================================================================ Felix Sebastian Gallo rhodesia@wixer.cactus.org ============================================================================