curses message suppression

The curses interface was using 'moves' as if it meant "moves" rather
than "turns".  Typing ESC at >> (curses' terser version of --More--)
prompt would suppress messages for the rest of the current turn rather
than just the rest of the current move.  So if the hero got an extra
move due to being Fast, there would be no feedback during that move.
This commit is contained in:
PatR
2019-03-31 15:34:46 -07:00
parent 0a847f46f9
commit cd12422af5
4 changed files with 34 additions and 12 deletions
+5
View File
@@ -9,6 +9,8 @@
#include "color.h"
#include "wincurs.h"
extern long curs_mesg_suppress_turn; /* from cursmesg.c */
/* Public functions for curses NetHack interface */
/* Interface definition, for windows.c */
@@ -687,6 +689,9 @@ curses_nhgetch()
{
int ch;
/* if messages are being suppressed, reenable them */
curs_mesg_suppress_turn = -1;
curses_prehousekeeping();
ch = curses_read_char();
curses_posthousekeeping();