Use curs_set(3) in stable_getch() to disable/enable visible cursor.
authorMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 6 Apr 2023 04:16:36 +0000 (04:16 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 6 Apr 2023 04:16:36 +0000 (04:16 +0000)
src/main.cpp

index fa6043a..75dd62f 100644 (file)
@@ -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;
 }