• Mike Galbraith's avatar
    perf top: Improve interactive key handling · 091bd2e9
    Mike Galbraith authored
    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: default avatarMike Galbraith <efault@gmx.de>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    091bd2e9
builtin-top.c 26.8 KB