Re: ESC [12m

Aaron M. Ucko (amu@mit.edu)
26 Mar 1998 11:07:43 -0600


Riley Williams <rhw@bigfoot.com> writes:

> I've been playing with the ANSI code sequences recently, and
> discovered that the above sequence causes the displayed character
> set to go wierd every time, with only logging out and back in
> curing it.
>
> Can somebody please tell me what the above sequence is supposed to
> do, and what I ought to be doing to clear it - I'm not fond of
> logging out unnecessarily...

10 reset selected mapping, display control flag,
and toggle meta flag.
11 select null mapping, set display control flag,
reset toggle meta flag.
12 select null mapping, set display control flag,
set toggle meta flag. (The toggle meta flag
causes the high bit of a byte to be toggled

Linux October 31, 1996 4

CONSOLE_CODES(4) Linux Programmer's Manual CONSOLE_CODES(4)

before the mapping table translation is done.)

so CSI 10m should undo it. You should also be able to clear it with
"reset", which should reset everything, or "tput sgr0" if that fails.

-- 
Aaron M. Ucko <amu@mit.edu> (finger amu@monk.mit.edu) [Stark raving sane]

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu