From 1260f29baa225f8267ad60a266c849d48b5609de Mon Sep 17 00:00:00 2001 From: Matthew Mondor Date: Thu, 6 Apr 2023 04:16:36 +0000 Subject: [PATCH] Use curs_set(3) in stable_getch() to disable/enable visible cursor. --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.9.0