mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 01:06:21 +00:00
Check for method of setting ESCDELAY
This commit is contained in:
@@ -72,8 +72,11 @@ static void _parameter_autocomplete(char *input, int *size, char *command,
|
|||||||
void
|
void
|
||||||
create_input_window(void)
|
create_input_window(void)
|
||||||
{
|
{
|
||||||
if (getenv("ESCDELAY") == NULL)
|
#ifdef NCURSES_REENTRANT
|
||||||
ESCDELAY = 25;
|
set_escdelay(25);
|
||||||
|
#else
|
||||||
|
ESCDELAY = 25;
|
||||||
|
#endif
|
||||||
|
|
||||||
int rows, cols;
|
int rows, cols;
|
||||||
getmaxyx(stdscr, rows, cols);
|
getmaxyx(stdscr, rows, cols);
|
||||||
|
|||||||
Reference in New Issue
Block a user