aboutsummaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:19:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:19:38 +0000
commitb2935e2b89cf999d64a6322f58d6bf4307371463 (patch)
treecb14da48fd160285c90e99c9b9e83f1d1ce61a28 /render.h
parentdcs: abort() in bsu/esu (diff)
render: add render_{enable,disable}_refresh()
Calling render_disable_refresh() causes update requests to that terminal to be ignored. Calling render_enable_refresh() re-enables updates.
Diffstat (limited to 'render.h')
-rw-r--r--render.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/render.h b/render.h
index 43f5314e..59bae895 100644
--- a/render.h
+++ b/render.h
@@ -11,6 +11,8 @@ void render_destroy(struct renderer *renderer);
void render_resize(struct terminal *term, int width, int height);
void render_set_title(struct terminal *term, const char *title);
void render_refresh(struct terminal *term);
+void render_disable_refresh(struct terminal *term);
+void render_enable_refresh(struct terminal *term);
bool render_xcursor_set(struct terminal *term);
void render_search_box(struct terminal *term);