From e3a1a98ae3ae6fbd01f9cbefe370108e7f71c06d Mon Sep 17 00:00:00 2001 From: girst Date: Mon, 26 Nov 2018 17:57:02 +0100 Subject: [PATCH] fix cursor hidden after exiting from win_anim() --- sol.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sol.c b/sol.c index 6f7e1fd..8264864 100644 --- a/sol.c +++ b/sol.c @@ -151,8 +151,11 @@ void win_anim(void) { /* exit on keypress */ struct pollfd p = {STDIN_FILENO, POLLIN, 0}; - if (poll (&p, 1, 80)) return; + if (poll (&p, 1, 80)) goto fin; } +fin: + printf ("\033[?25h"); /* show cursor */ + return; } // takeable actions {{{ #ifdef KLONDIKE -- 2.39.3