diff options
Diffstat (limited to 'drivers')
| -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; |
