Skip to content

Commit

Permalink
tty: Use preferred method for setting ESCDELAY.
Browse files Browse the repository at this point in the history
Fixes #3.
  • Loading branch information
micahcowan committed Nov 5, 2024
1 parent 1d06243 commit 2efcd9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ static void if_tty_start(void)
nodelay(stdscr, true);

#ifdef NCURSES_VERSION
ESCDELAY=17; // Wait 1/60th of a second to see if an escape char
// is the start of a terminal control sequence/function key
set_escdelay(17); // Wait 1/60th of a second to see if an escape char
// is the start of a terminal control sequence/function key
// ^ This solution is not portable. But there doesn't seem to be a
// portable way to reduce/eliminate the wait time for an escape
// sequence. If we have to choose between zero delay, and half a
Expand Down

0 comments on commit 2efcd9e

Please sign in to comment.