mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Corcalciuc V. Horia" <rain@sevenrains.ro>
To: linux-kernel@vger.kernel.org
Subject: vt_def_color.patch
Date: Sun, 23 Jan 2005 21:55:11 +0200	[thread overview]
Message-ID: <1106510111.4842.17.camel@Maia.ro> (raw)

[-- 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 --]

                 reply	other threads:[~2005-01-23 19:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1106510111.4842.17.camel@Maia.ro \
    --to=rain@sevenrains.ro \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®