mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-10 05:33:51 -04:00
term: disable cursor blink before shutting down terminal, and remove from FDM
This commit is contained in:
parent
d490cc84c0
commit
dac31dd9c0
1 changed files with 4 additions and 0 deletions
|
|
@ -685,14 +685,18 @@ term_shutdown(struct terminal *term)
|
||||||
* iteration, by creating an event FD that we trigger immediately.
|
* 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.lower_fd);
|
||||||
fdm_del(term->fdm, term->delayed_render_timer.upper_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->blink.fd);
|
||||||
fdm_del(term->fdm, term->flash.fd);
|
fdm_del(term->fdm, term->flash.fd);
|
||||||
fdm_del(term->fdm, term->ptmx);
|
fdm_del(term->fdm, term->ptmx);
|
||||||
|
|
||||||
term->delayed_render_timer.lower_fd = -1;
|
term->delayed_render_timer.lower_fd = -1;
|
||||||
term->delayed_render_timer.upper_fd = -1;
|
term->delayed_render_timer.upper_fd = -1;
|
||||||
|
term->cursor_blink.fd = -1;
|
||||||
term->blink.fd = -1;
|
term->blink.fd = -1;
|
||||||
term->flash.fd = -1;
|
term->flash.fd = -1;
|
||||||
term->ptmx = -1;
|
term->ptmx = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue