From dac31dd9c024bb312c86cf6c60e952d932d737e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 16 Dec 2019 21:32:57 +0100 Subject: [PATCH] term: disable cursor blink before shutting down terminal, and remove from FDM --- terminal.c | 4 ++++ 1 file changed, 4 insertions(+) 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;