From b332d28fca0f56381a6f5458f5898ef4ffa0242f Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Tue, 24 Apr 2012 15:59:31 -0400 Subject: [PATCH 1/1] Prevent the 1 second delay with ESC key binding Signed-off-by: Julien Desfossez --- src/lttngtop.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lttngtop.c b/src/lttngtop.c index 11635b4..f2df936 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -88,6 +88,10 @@ void *ncurses_display(void *p) unsigned int current_display_index = 0; sem_wait(&bootstrap); + /* + * Prevent the 1 second delay when we hit ESC + */ + ESCDELAY = 0; init_ncurses(); while (1) { -- 2.34.1