From: Matthew Mondor Date: Thu, 6 Apr 2023 04:16:36 +0000 (+0000) Subject: Use curs_set(3) in stable_getch() to disable/enable visible cursor. X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=1260f29baa225f8267ad60a266c849d48b5609de;p=curblaster.git Use curs_set(3) in stable_getch() to disable/enable visible cursor. --- diff --git a/src/main.cpp b/src/main.cpp index fa6043a..75dd62f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -148,6 +148,7 @@ stable_getch(void) { int c; + (void)curs_set(0); (void)keypad(win, TRUE); (void)timeout(-1); @@ -158,6 +159,7 @@ stable_getch(void) c = uc; uc = ERR; + (void)curs_set(1); return c; }