aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index df17201b..ee12ae32 100644
--- a/terminal.c
+++ b/terminal.c
@@ -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