1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05: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 void
create_input_window(void) create_input_window(void)
{ {
if (getenv("ESCDELAY") == NULL) #ifdef NCURSES_REENTRANT
set_escdelay(25);
#else
ESCDELAY = 25; ESCDELAY = 25;
#endif
int rows, cols; int rows, cols;
getmaxyx(stdscr, rows, cols); getmaxyx(stdscr, rows, cols);