lkml.org 
[lkml]   [1999]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: console color code location?
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:1.063 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site