diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2009-12-15 19:45:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 10:19:57 -0500 |
commit | 9ea9a886b0e8630e12cff515955e7f0f5be32cb1 (patch) | |
tree | bf431e1b000e47982d07c81c3d5f3c1be98d92b8 /drivers/char | |
parent | 135d5655dc58a24eda64e3f6c192d7d605e10050 (diff) |
vt: make the default cursor shape configurable
For embedded systems, the blinking cursor at startup time can be annoying
and unintended. Add a new kernel parameter to change the default cursor
shape.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Cc: Daniel Mack <daniel@caiaq.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: David Newall <davidn@davidnewall.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/vt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index e43fbc66aef0..50faa1fb0f06 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c | |||
@@ -164,6 +164,9 @@ module_param(default_utf8, int, S_IRUGO | S_IWUSR); | |||
164 | int global_cursor_default = -1; | 164 | int global_cursor_default = -1; |
165 | module_param(global_cursor_default, int, S_IRUGO | S_IWUSR); | 165 | module_param(global_cursor_default, int, S_IRUGO | S_IWUSR); |
166 | 166 | ||
167 | static int cur_default = CUR_DEFAULT; | ||
168 | module_param(cur_default, int, S_IRUGO | S_IWUSR); | ||
169 | |||
167 | /* | 170 | /* |
168 | * ignore_poke: don't unblank the screen when things are typed. This is | 171 | * ignore_poke: don't unblank the screen when things are typed. This is |
169 | * mainly for the privacy of braille terminal users. | 172 | * mainly for the privacy of braille terminal users. |
@@ -1636,7 +1639,7 @@ static void reset_terminal(struct vc_data *vc, int do_clear) | |||
1636 | /* do not do set_leds here because this causes an endless tasklet loop | 1639 | /* do not do set_leds here because this causes an endless tasklet loop |
1637 | when the keyboard hasn't been initialized yet */ | 1640 | when the keyboard hasn't been initialized yet */ |
1638 | 1641 | ||
1639 | vc->vc_cursor_type = CUR_DEFAULT; | 1642 | vc->vc_cursor_type = cur_default; |
1640 | vc->vc_complement_mask = vc->vc_s_complement_mask; | 1643 | vc->vc_complement_mask = vc->vc_s_complement_mask; |
1641 | 1644 | ||
1642 | default_attr(vc); | 1645 | default_attr(vc); |
@@ -1838,7 +1841,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) | |||
1838 | if (vc->vc_par[0]) | 1841 | if (vc->vc_par[0]) |
1839 | vc->vc_cursor_type = vc->vc_par[0] | (vc->vc_par[1] << 8) | (vc->vc_par[2] << 16); | 1842 | vc->vc_cursor_type = vc->vc_par[0] | (vc->vc_par[1] << 8) | (vc->vc_par[2] << 16); |
1840 | else | 1843 | else |
1841 | vc->vc_cursor_type = CUR_DEFAULT; | 1844 | vc->vc_cursor_type = cur_default; |
1842 | return; | 1845 | return; |
1843 | } | 1846 | } |
1844 | break; | 1847 | break; |