From: Julien Desfossez Date: Tue, 24 Apr 2012 19:59:31 +0000 (-0400) Subject: Prevent the 1 second delay with ESC key binding X-Git-Tag: v0.2~12 X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=commitdiff_plain;h=b332d28fca0f56381a6f5458f5898ef4ffa0242f;hp=844d1c9c0caec27c75cb1fd46bb7922cbc363924 Prevent the 1 second delay with ESC key binding Signed-off-by: Julien Desfossez --- 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) {