aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-16 20:59:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-16 20:59:06 +0000
commit749ae49c48eebe2ac62ee6dac9dea5fc570d10fd (patch)
tree8722d9825f55706c8bd523fc23e1435e6fd82eae /csi.c
parentconfig: open_config(): remove unused argument ‘conf’ (diff)
parentcsi: update ASCII printer function pointer when switching to/from alt screen (diff)
Merge branch 'optimized-print-function'
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index 5b102f58..ec83f81e 100644
--- a/csi.c
+++ b/csi.c
@@ -546,6 +546,7 @@ decset_decrst(struct terminal *term, unsigned param, bool enable)
tll_free(term->alt.scroll_damage);
term_damage_all(term);
}
+ term_update_ascii_printer(term);
break;
case 1070:
@@ -1136,6 +1137,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
case 4: /* Insert Mode - IRM */
term->insert_mode = true;
+ term_update_ascii_printer(term);
break;
case 12: /* Send/receive Mode - SRM */
@@ -1156,6 +1158,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
switch (vt_param_get(term, 0, 0)) {
case 4: /* Insert Mode - IRM */
term->insert_mode = false;
+ term_update_ascii_printer(term);
break;
case 2: /* Keyboard Action Mode - AM */