diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-10-06 15:23:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-10-10 15:19:18 +0000 |
| commit | f4f1989b6ef341557cc90a6805d745fef2a7a815 (patch) | |
| tree | 99978cb05a7a611a3253362c1e39083661b14872 /terminal.c | |
| parent | render: performance improvements during interactive resize (diff) | |
render: resize: ignore ptmx read events during interactive resize
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -233,6 +233,18 @@ static struct timespec last = {0}; static bool cursor_blink_rearm_timer(struct terminal *term); +void +term_ptmx_pause(struct terminal *term) +{ + fdm_event_del(term->fdm, term->ptmx, EPOLLIN); +} + +void +term_ptmx_resume(struct terminal *term) +{ + fdm_event_add(term->fdm, term->ptmx, EPOLLIN); +} + /* Externally visible, but not declared in terminal.h, to enable pgo * to call this function directly */ bool |
