Curses: enable debug fuzzer

This commit is contained in:
Pasi Kallinen
2022-09-22 13:10:13 +03:00
parent 82337beedd
commit fbb32ea7fa
4 changed files with 12 additions and 6 deletions

View File

@@ -39,7 +39,10 @@ curses_read_char(void)
/* cancel message suppression; all messages have had a chance to be read */
curses_got_input();
ch = getch();
if (iflags.debug_fuzzer)
ch = randomkey();
else
ch = getch();
#if defined(ALT_0) || defined(ALT_9) || defined(ALT_A) || defined(ALT_Z)
tmpch = ch;
#endif