]> git.draconx.ca Git - rrace.git/commitdiff
Don't use leaveok() in curses.
authorNick Bowler <nbowler@draconx.ca>
Wed, 8 Jun 2022 03:55:32 +0000 (23:55 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 8 Jun 2022 03:55:32 +0000 (23:55 -0400)
Hiding the cursor seems unreliable, so when curs_set doesn't actually
work I think it's better to keep the cursor in some innocuous location
rather than having it randomly move around in the game area.

src/curses.c

index 215129ef1705e134ddb06ddaf90d82d2ca56aec6..986e7de09e409a913e7a78f79bd579aed9ccb1cb 100644 (file)
@@ -319,8 +319,7 @@ static void app_initialize(int argc, char **argv)
 
        initscr();
        start_color();
-       if (curs_set(0) != ERR)
-               leaveok(stdscr, TRUE);
+       curs_set(0);
 
        cbreak();
        keypad(stdscr, TRUE);