The patch titled vt: make the default cursor shape configurable has been added to the -mm tree. Its filename is vt-make-the-default-cursor-shape-configurable.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: vt: make the default cursor shape configurable From: Clemens Ladisch <clemens@xxxxxxxxxx> -ENOCHANGELOG Signed-off-by: Clemens Ladisch <clemens@xxxxxxxxxx> Cc: Daniel Mack <daniel@xxxxxxxx> Acked-by: Pavel Machek <pavel@xxxxxx> Cc: David Newall <davidn@xxxxxxxxxxxxxxx> Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- Documentation/kernel-parameters.txt | 5 +++++ drivers/char/vt.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff -puN Documentation/kernel-parameters.txt~vt-make-the-default-cursor-shape-configurable Documentation/kernel-parameters.txt --- a/Documentation/kernel-parameters.txt~vt-make-the-default-cursor-shape-configurable +++ a/Documentation/kernel-parameters.txt @@ -2720,6 +2720,11 @@ and is between 256 and 4096 characters. vmpoff= [KNL,S390] Perform z/VM CP command after power off. Format: <command> + vt.cur_default= [VT] Default cursor shape. + Format: 0xCCBBAA, where AA, BB, and CC are the same as + the parameters of the <Esc>[?A;B;Cc escape sequence; + see VGA-softcursor.txt. Default: 2 = underline. + vt.default_blu= [VT] Format: <blue0>,<blue1>,<blue2>,...,<blue15> Change the default blue palette of the console. diff -puN drivers/char/vt.c~vt-make-the-default-cursor-shape-configurable drivers/char/vt.c --- a/drivers/char/vt.c~vt-make-the-default-cursor-shape-configurable +++ a/drivers/char/vt.c @@ -162,6 +162,9 @@ static int printable; /* Is console rea int default_utf8 = true; module_param(default_utf8, int, S_IRUGO | S_IWUSR); +static int cur_default = CUR_DEFAULT; +module_param(cur_default, int, S_IRUGO | S_IWUSR); + /* * ignore_poke: don't unblank the screen when things are typed. This is * mainly for the privacy of braille terminal users. @@ -1628,7 +1631,7 @@ static void reset_terminal(struct vc_dat /* do not do set_leds here because this causes an endless tasklet loop when the keyboard hasn't been initialized yet */ - vc->vc_cursor_type = CUR_DEFAULT; + vc->vc_cursor_type = cur_default; vc->vc_complement_mask = vc->vc_s_complement_mask; default_attr(vc); @@ -1830,7 +1833,7 @@ static void do_con_trol(struct tty_struc if (vc->vc_par[0]) vc->vc_cursor_type = vc->vc_par[0] | (vc->vc_par[1] << 8) | (vc->vc_par[2] << 16); else - vc->vc_cursor_type = CUR_DEFAULT; + vc->vc_cursor_type = cur_default; return; } break; _ Patches currently in -mm which might be from clemens@xxxxxxxxxx are origin.patch linux-next.patch vt-make-the-default-cursor-shape-configurable.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html