From: Nick Bowler Date: Wed, 8 Jun 2022 03:55:32 +0000 (-0400) Subject: Don't use leaveok() in curses. X-Git-Url: https://git.draconx.ca/gitweb/rrace.git/commitdiff_plain/83cf6ab853216f8b7b61b484e851863d2904b573 Don't use leaveok() in curses. 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. --- diff --git a/src/curses.c b/src/curses.c index 215129e..986e7de 100644 --- a/src/curses.c +++ b/src/curses.c @@ -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);