aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:46:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:46:25 +0000
commit21646f00599220026e9d5bade71e47eb4359bbd7 (patch)
tree0e98915ac783a43923cf2607c4ab972c1b08ae53 /terminal.h
parentdcs: abort() in bsu/esu (diff)
parentterm: app sync updates: disable delayed rendering timers once only (diff)
Merge branch 'synchronized-updates'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 8e47826b..f30352ae 100644
--- a/terminal.h
+++ b/terminal.h
@@ -292,6 +292,11 @@ struct terminal {
bool refresh_needed; /* Terminal needs to be re-rendered, as soon-as-possible */
int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */
+ struct {
+ bool enabled;
+ int timer_fd;
+ } application_synchronized_updates;
+
/* Render threads + synchronization primitives */
struct {
size_t count;
@@ -405,3 +410,6 @@ void term_xcursor_update(struct terminal *term);
void term_set_window_title(struct terminal *term, const char *title);
void term_flash(struct terminal *term, unsigned duration_ms);
bool term_spawn_new(const struct terminal *term);
+
+void term_enable_application_synchronized_updates(struct terminal *term);
+void term_disable_application_synchronized_updates(struct terminal *term);