From cf315de174ffb851b7d794aae1b38ad5c2467560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 16 Aug 2020 16:25:52 +0200 Subject: [PATCH] csi: add DEC names to a couple of DECSET modes --- csi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/csi.c b/csi.c index 873d45a7..e4c3ca9a 100644 --- a/csi.c +++ b/csi.c @@ -331,11 +331,13 @@ decset_decrst(struct terminal *term, unsigned param, bool enable) switch (param) { case 1: + /* DECCKM */ term->cursor_keys_mode = enable ? CURSOR_KEYS_APPLICATION : CURSOR_KEYS_NORMAL; break; case 3: + /* DECCOLM */ if (enable) LOG_WARN("unimplemented: 132 column mode (DECCOLM)"); @@ -353,11 +355,13 @@ decset_decrst(struct terminal *term, unsigned param, bool enable) break; case 5: + /* DECSCNM */ term->reverse = enable; term_damage_all(term); break; - case 6: { /* DECOM */ + case 6: { + /* DECOM */ term->origin = enable ? ORIGIN_RELATIVE : ORIGIN_ABSOLUTE; term_cursor_home(term); break; @@ -384,6 +388,7 @@ decset_decrst(struct terminal *term, unsigned param, bool enable) break; case 25: + /* DECTCEM */ term->hide_cursor = !enable; break;