]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
perf top browser: Fix up exit keys
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Feb 2011 12:30:29 +0000 (09:30 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Feb 2011 12:30:29 +0000 (09:30 -0300)
commitc16bfe9ac389b13a37ff617a09682ecc0685960f
treef11a9006f1e58d7c6e760aa123adbb0cb05bc4bf
parent170ae6bc24e1d7f9bd921a484ec9ea2825497970
perf top browser: Fix up exit keys

The left key was exiting 'perf top --tui' when it really shouldn't, it
was too easy to leave the live annotation window and then press one too
many <- and get out of the tool altogether.

Do just like the report TUI does, ignore the left key for exit and also
ask the user when pressing ESC if that is really what is wanted.

Reported-by: Mike Galbraith <efault@gmx.de>
Suggested-by: Ingo Molnar <mingo@elte.hu>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browsers/top.c