mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Report unknown CSI r sequences
This commit is contained in:
@@ -221,11 +221,6 @@
|
|||||||
// Soft reset
|
// Soft reset
|
||||||
#define DECSTR 'p'
|
#define DECSTR 'p'
|
||||||
|
|
||||||
// *Select top and bottom margins*: Selects margins, defining the
|
|
||||||
// scrolling region; parameters are top and bottom line. If called
|
|
||||||
// without any arguments, whole screen is used.
|
|
||||||
#define DECSTBM 'r'
|
|
||||||
|
|
||||||
// *Horizontal position adjust*: Same as :data:`CHA`.
|
// *Horizontal position adjust*: Same as :data:`CHA`.
|
||||||
#define HPA '`'
|
#define HPA '`'
|
||||||
|
|
||||||
|
|||||||
@@ -649,8 +649,13 @@ dispatch_csi(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
|
|||||||
CALL_CSI_HANDLER1P(save_cursor, 0, '?');
|
CALL_CSI_HANDLER1P(save_cursor, 0, '?');
|
||||||
case RC:
|
case RC:
|
||||||
CALL_CSI_HANDLER1P(restore_cursor, 0, '?');
|
CALL_CSI_HANDLER1P(restore_cursor, 0, '?');
|
||||||
case DECSTBM:
|
case 'r':
|
||||||
CALL_CSI_HANDLER2(screen_set_margins, 0, 0);
|
if (!start_modifier && !end_modifier) {
|
||||||
|
// DECSTBM
|
||||||
|
CALL_CSI_HANDLER2(screen_set_margins, 0, 0);
|
||||||
|
}
|
||||||
|
REPORT_ERROR("Unknown CSI r sequence with start and end modifiers: '%c' '%c'", start_modifier, end_modifier);
|
||||||
|
break;
|
||||||
case DECSCUSR:
|
case DECSCUSR:
|
||||||
CALL_CSI_HANDLER1M(screen_set_cursor, 1);
|
CALL_CSI_HANDLER1M(screen_set_cursor, 1);
|
||||||
case SU:
|
case SU:
|
||||||
|
|||||||
Reference in New Issue
Block a user