1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Check for method of setting ESCDELAY

This commit is contained in:
James Booth 2012-10-23 01:31:19 +01:00
parent abec6ae07c
commit 07f41e646f

View File

@ -72,8 +72,11 @@ static void _parameter_autocomplete(char *input, int *size, char *command,
void
create_input_window(void)
{
if (getenv("ESCDELAY") == NULL)
ESCDELAY = 25;
#ifdef NCURSES_REENTRANT
set_escdelay(25);
#else
ESCDELAY = 25;
#endif
int rows, cols;
getmaxyx(stdscr, rows, cols);