perf top: Improve interactive key handling
authorMike Galbraith <efault@gmx.de>
Tue, 4 Aug 2009 08:21:23 +0000 (10:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 9 Aug 2009 10:54:31 +0000 (12:54 +0200)
commit091bd2e993fcb1094a23e36157285b62bc87afdf
tree6f6d88d3543ff3efcf1976b38b9ce90910cab22e
parent7b4b6658e152ed4568cfff48175d93645df081d1
perf top: Improve interactive key handling

Pressing any key which is not currently mapped to
functionality, based on startup command line options, displays
currently mapped keys, and prompts for input.

Pressing any unmapped key at the prompt returns the user to
display mode with variables unchanged.  eg, pressing ? <SPACE>
<ESC> etc displays currently available keys, the value of the
variable associated with that key, and prompts.

Pressing same again aborts input.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-top.c