Skip to content

Commit

Permalink
Reduce escape delay time to 10ms
Browse files Browse the repository at this point in the history
Greatly improves responsiveness. Inspired by tmux's recent change to
the escape-time default:
tmux/tmux#3844
  • Loading branch information
fragglet committed Oct 13, 2024
1 parent 321ee25 commit a3d0c54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/termfuncs.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ void TF_SetCursesModes(void)
noecho();
nonl();
intrflush(stdscr, FALSE);
// See https://github.com/tmux/tmux/issues/3844
set_escdelay(10);
keypad(stdscr, TRUE);
TF_SetPalette(&nwt_palette);
}
Expand Down

0 comments on commit a3d0c54

Please sign in to comment.