mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 13:16:22 +00:00
tty: vt: move CSI+n handling along to other ECMA CSIs
CSIs without [<=>?] modifiers (ECMA) are handled in the switch-case below this DEC switch+case handler. So move this ECMA CSI+n there too as it fits there better. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20240202065608.14019-7-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9abe9bf574
commit
0afaeb78d1
@ -2412,14 +2412,6 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 'n':
|
||||
if (vc->vc_priv == EPecma) {
|
||||
if (vc->vc_par[0] == 5)
|
||||
status_report(tty);
|
||||
else if (vc->vc_par[0] == 6)
|
||||
cursor_report(vc, tty);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (vc->vc_priv != EPecma)
|
||||
return;
|
||||
@ -2506,6 +2498,12 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
|
||||
case 'm':
|
||||
csi_m(vc);
|
||||
return;
|
||||
case 'n':
|
||||
if (vc->vc_par[0] == 5)
|
||||
status_report(tty);
|
||||
else if (vc->vc_par[0] == 6)
|
||||
cursor_report(vc, tty);
|
||||
return;
|
||||
case 'q': /* DECLL - but only 3 leds */
|
||||
/* map 0,1,2,3 to 0,1,2,4 */
|
||||
if (vc->vc_par[0] < 4)
|
||||
|
Loading…
Reference in New Issue
Block a user