diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-12 11:46:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-12 11:46:25 +0000 |
| commit | 21646f00599220026e9d5bade71e47eb4359bbd7 (patch) | |
| tree | 0e98915ac783a43923cf2607c4ab972c1b08ae53 /terminal.h | |
| parent | dcs: abort() in bsu/esu (diff) | |
| parent | term: app sync updates: disable delayed rendering timers once only (diff) | |
Merge branch 'synchronized-updates'
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |
