Commit: 8aecf19dd4ee1633e7235b214a63246061089c69
Parent: b45260a8aa557c12cffcd58a80a652608baee266
Author: Randy Palamar
Date: Wed, 18 Sep 2024 07:32:53 -0600
ignore DECSCL (set conformance level)
Diffstat:
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/terminal.c b/terminal.c
@@ -704,7 +704,6 @@ handle_csi(Term *t, CSI *csi)
iv2 p = t->cursor.pos;
- u8 next;
switch (csi->mode) {
case 'A': cursor_step_raw(t, ORONE(csi->argv[0]), -1, 0); break;
case 'B': cursor_step_raw(t, ORONE(csi->argv[0]), 1, 0); break;
@@ -735,14 +734,21 @@ handle_csi(Term *t, CSI *csi)
set_scrolling_region(t, csi);
cursor_move_abs_to(t, 0, 0);
break;
- case 't': window_manipulation(t, csi); break;
+ case 't': window_manipulation(t, csi); break;
case '!':
- next = get_ascii(&raw);
- if (next == 'p') {
+ if (csi->raw.data[csi->raw.len - 1] == 'p') {
/* NOTE: DECSTR: soft terminal reset IGNORED */
break;
}
- /* FALLTHROUGH */
+ goto unknown;
+ case '"':
+ if (csi->raw.data[csi->raw.len - 1] == 'p') {
+ /* TODO: we should look at the second parameter and
+ * use it modify C1 control character mode */
+ /* NOTE: DECSCL: set conformance level IGNORED */
+ break;
+ }
+ goto unknown;
default:
unknown:
os_write_err_msg(s8("unknown csi: "));