Re: console color code location?

Bob Lorenzini (hwm@newportharbornet.com)
Mon, 1 Nov 1999 16:10:59 -0800 (PST)


On Mon, 1 Nov 1999, Al Elia wrote:

> I've tried using setterm...it doesn't take (permanently anyway). In
> FreeBSD, you can set teh default colors in the syscons.c (defaults are
> FG_LIGHTGREY || BG_BLACK....I set them to FG_WHITE || BG BLACK) file and
> recompile the kernel, so that all programs use those colors by
> default. I'm assuming that this is set somewhere in the console driver
> code in linux, but I have thus far been unsuccessful in finding where.
>

In console.c, the following gives blue text on white.

def_color = 0x71;
ulcolor = 0x7f;
halfcolor = 0x78;

If you do this you will also probably have to dork with /etc/DIR_COLORS
depending on what your after.

Bob

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