Re: console color code location?

Alexander Viro (
Mon, 1 Nov 1999 18:08:23 -0500 (EST)

On Mon, 1 Nov 1999, Guest section DW wrote:

> > I'm a FreeBSD guy who's new to Linux...and I need to be able to compile my
> > kernel with specific colors (bright white text on a black background).
> > Anywone know where/how this is done in the linux kernel source?
> But the console colors are set by the user, possibly using setterm,
> or some other utility. There is no need to do anything at compile time.
> (Is that otherwise in FreeBSD? I can hardly imagine.)

D'oh. There is _one_ place where you can't control it with setterm -
initial messages upon boot. Dunno why it might be needed, but anyway:
paletter sits in color_table[], default_{red,grn,blu}[], colors are set in
vc_init() (all in drivers/char/console.c). But really, what's the point of
that exercise? Use setterm in rc scripts and there you go. It's not like
you were going to see boot messages that often...

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