Re: fixing a messed up console

Riley Williams (rhw@bigfoot.com)
Sat, 31 Oct 1998 21:53:35 +0000 (GMT)


Hi there.

> how would i restore a console after it's been messed up by a buggy
> svgalib program?

> for example, snes9x doesn't restore the mode properly when it
> exits. i'm left with some unreadable text mode.

> i've tried to use SVGATextMode to restore the original mode. it
> seems to restore the mode right, but the font is garbage. and
> setfont has no effect.

That sounds like a problem I've had a few times, and the cure is
actually quite simple, but relies on some blind typing. To make it as
simple as possible, create the file /bin/clrvdu with mode 755 and the
following contents:

#!/bin/sh
echo -e '\33[11m'

Then, whenever your display messes up like that, just type the command

clrvid

(which you'll have to do blindly as you can't see what you're typing),
and the font will be restored. Alternatively, try blind typing the
second of the above lines...

> i vaguely remember two programs from slackware 3.0: setvgaregs and
> getvgaregs. i can't seem to find those anywhere, wether or not i
> remember their names correctly.

Not sure about them, I've never heard of them before, but the above
should help...

Best wishes from Riley.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/