Re: background colors on console

Peter Samuelson (
Wed, 3 Nov 1999 09:38:24 -0600 (CST)

[Jon Mitchell]
> however I can't seem to make high intensity background colors work on
> the linux console. Does anyone know what I'm talking about?

Below are excerpts from two messages that came through this list in the
last couple days. Enjoy.

Peter Samuelson


From: Rick Hohensee <> Subject: Re: console color code location? Date: Mon, 1 Nov 1999 23:46:36 -0500 (EST)

There's a VGA palette manipulator in ../contrib in the SVGATextMode package, if I recall where I got it, and you can bang on this stuff from userland via something that can lseek /dev/port.


From: Tuukka Toivonen <> Subject: Re: console color code location? Date: Tue, 2 Nov 1999 14:24:17 +0200 (EET)

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...)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at