Curses: Obey timed_delay option

This commit is contained in:
Pasi Kallinen
2022-05-19 18:40:15 +03:00
parent 27119907a7
commit c6a3ae5c6c
2 changed files with 9 additions and 4 deletions
+8 -4
View File
@@ -995,10 +995,14 @@ delay_output() -- Causes a visible delay of 50ms in the output.
void
curses_delay_output(void)
{
/* refreshing the whole display is a waste of time,
* but that's why we're here */
refresh();
napms(50);
#ifdef TIMED_DELAY
if (flags.nap) {
/* refreshing the whole display is a waste of time,
* but that's why we're here */
refresh();
napms(50);
}
#endif
}
/*