vt_def_color.patch

From: Corcalciuc V. Horia
Date: Sun Jan 23 2005 - 14:56:51 EST


Hello,
I've written a small patch meant to modfity the default vt color on 2.6
kernels. If usefull please aply :)

--- linux-2.6.9/drivers/char/Kconfig 2004-10-19 00:53:07.000000000
+0300
+++ linux-update/drivers/char/Kconfig 2004-11-19 00:05:10.000000000
+0200
@@ -57,6 +57,35 @@

If unsure, say Y.

+config VT_COLOR
+ bool "Change default VT color."
+ depends on VT
+ default n
+ ---help---
+ This option will allow you to change the default color of
your VT
+ terminal.
+
+ If you say Y here, the next option will let you choose the
hex
+ value. For more information see the help included for the
option
+ below.
+
+ This option should be safe. If unsure, say N.
+
+config VT_COLOR_NEW
+ hex "Choose default VT color"
+ depends on VT_COLOR
+ default 0x07
+ ---help---
+ Choose default VT foreground color. Setting this option will
let
+ you select the default color of your VT terminal.
+
+ Tested options:
+ 0x03 - cyan
+ 0x05 - purple
+ 0x07 - white (default)
+ 0x09 - blue
+ 0x0A - green
+
config HW_CONSOLE
bool
depends on VT && !S390 && !USERMODE
--- linux-2.6.9/drivers/char/vt.c 2004-10-19 00:55:06.000000000
+0300
+++ linux-update/drivers/char/vt.c 2004-11-18 23:48:44.000000000
+0200
@@ -2555,7 +2555,7 @@
vc_cons[currcons].d->vc_palette[k++] = default_grn[j] ;
vc_cons[currcons].d->vc_palette[k++] = default_blu[j] ;
}
- def_color = 0x07; /* white */
+ def_color = CONFIG_VT_COLOR_NEW; /* new */
ulcolor = 0x0f; /* bold white */
halfcolor = 0x08; /* grey */
init_waitqueue_head(&vt_cons[currcons]->paste_wait);

Attachment: signature.asc
Description: This is a digitally signed message part