Re: console color code location?

Tuukka Toivonen (tuukkat@ees2.oulu.fi)
Tue, 2 Nov 1999 14:24:17 +0200 (EET)


On Mon, 1 Nov 1999, Rick Hohensee wrote:

>The VGA video RAMDAC palette is at 0x3c8 in write mode and 0x03c7 in

The kernel (at least 2.0.x) recognizes also magic escape strings,
when echoed to screen, change the palette. I don't remember exactly the
sequence but something like "<esc>[RRGGBBP" where RR, GG and BB
are the primary colors (0x0..0xff) in hex. Possibly [ is actually ] (?).

The original palette can be restored with "<esc>[R". (This too
is from my faulty memory...)

--
| Tuukka Toivonen <tuukkat@ee.oulu.fi>       [PGP public key
| Homepage: http://www.ee.oulu.fi/~tuukkat/       available]
| Try also finger -l tuukkat@ee.oulu.fi
| Studying information engineering at the University of Oulu
+-----------------------------------------------------------

- 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/