aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-16 20:32:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-16 20:32:57 +0000
commitdac31dd9c024bb312c86cf6c60e952d932d737e7 (patch)
treec7d86eb82ec00d9cc2e94befbed9815995927d39
parentterm: cursor blink: cursor refresh now dirties the cursor cell (diff)
term: disable cursor blink before shutting down terminal, and remove from FDM
-rw-r--r--terminal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index b016f2e7..0c302a51 100644
--- a/terminal.c
+++ b/terminal.c
@@ -685,14 +685,18 @@ term_shutdown(struct terminal *term)
* iteration, by creating an event FD that we trigger immediately.
*/
+ term_cursor_blink_disable(term);
+
fdm_del(term->fdm, term->delayed_render_timer.lower_fd);
fdm_del(term->fdm, term->delayed_render_timer.upper_fd);
+ fdm_del(term->fdm, term->cursor_blink.fd);
fdm_del(term->fdm, term->blink.fd);
fdm_del(term->fdm, term->flash.fd);
fdm_del(term->fdm, term->ptmx);
term->delayed_render_timer.lower_fd = -1;
term->delayed_render_timer.upper_fd = -1;
+ term->cursor_blink.fd = -1;
term->blink.fd = -1;
term->flash.fd = -1;
term->ptmx = -1;