summaryrefslogtreecommitdiffstats
path: root/ScreenManager.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-07-04 16:50:41 +0200
committerBenny Baumann <BenBE@geshi.org>2021-07-04 16:50:41 +0200
commit18e3fd5ce79a10aa401bef9575a6c6de8e547d31 (patch)
treec9d626b063fd85d78b8d9ed614ca4b8cb79183aa /ScreenManager.c
parent874fb773a71328b65f203fcf4ea5a67202ef5654 (diff)
Check for set_escdelay in ncurses
Diffstat (limited to 'ScreenManager.c')
-rw-r--r--ScreenManager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ScreenManager.c b/ScreenManager.c
index 6e7551fe..8ec60119 100644
--- a/ScreenManager.c
+++ b/ScreenManager.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "ScreenManager.h"
#include <assert.h>
@@ -164,7 +166,9 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
}
int prevCh = ch;
+#ifdef HAVE_SET_ESCDELAY
set_escdelay(25);
+#endif
ch = getch();
HandlerResult result = IGNORED;

© 2014-2024 Faster IT GmbH | imprint | privacy policy