* vt_def_color.patch
@ 2005-01-23 19:55 Corcalciuc V. Horia
0 siblings, 0 replies; only message in thread
From: Corcalciuc V. Horia @ 2005-01-23 19:55 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1931 bytes --]
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-23 19:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-23 19:55 vt_def_color.patch Corcalciuc V. Horia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®