aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-29 17:38:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-29 17:38:56 +0000
commit70f12741716757631810dc52ffa5d7fab8efbaaf (patch)
tree2b3420dce520faecf5ce72d1d410237028e4b2ca /osc.c
parentMerge branch 'allow-mouse-binding-click-count-less-than' into master (diff)
parentchangelog: fixed color flashes with OSC 4,10,11 (diff)
Merge branch 'osc4-refresh-scheduling' into master
Closes #141
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/osc.c b/osc.c
index 7e22d7c1..384cf401 100644
--- a/osc.c
+++ b/osc.c
@@ -589,7 +589,6 @@ osc_dispatch(struct terminal *term)
}
}
- render_refresh(term);
break;
}
@@ -635,8 +634,7 @@ osc_dispatch(struct terminal *term)
}
term_damage_view(term);
- render_refresh(term);
- render_refresh_margins(term);
+ term_damage_margins(term);
break;
}
@@ -664,7 +662,8 @@ osc_dispatch(struct terminal *term)
term->cursor_color.cursor = 0; /* Invert fg/bg */
else
term->cursor_color.cursor = 1u << 31 | color;
- render_refresh(term);
+
+ term_damage_cursor(term);
break;
case 30: /* Set tab title */
@@ -705,7 +704,6 @@ osc_dispatch(struct terminal *term)
}
}
- render_refresh(term);
break;
}
@@ -716,22 +714,20 @@ osc_dispatch(struct terminal *term)
LOG_DBG("resetting foreground");
term->colors.fg = term->colors.default_fg;
term_damage_view(term);
- render_refresh(term);
break;
case 111: /* Reset default text background color */
LOG_DBG("resetting background");
term->colors.bg = term->colors.default_bg;
term_damage_view(term);
- render_refresh(term);
- render_refresh_margins(term);
+ term_damage_margins(term);
break;
case 112:
LOG_DBG("resetting cursor color");
term->cursor_color.text = term->default_cursor_color.text;
term->cursor_color.cursor = term->default_cursor_color.cursor;
- render_refresh(term);
+ term_damage_cursor(term);
break;
case 555: