diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-20 18:59:15 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-20 18:59:15 +0000 |
| commit | cf9580036a830f9e95f32dbcedfc57ea1697f120 (patch) | |
| tree | cad288bb3c8d10fca08210a2d68cf271a269ccee /tools/perf/util/ui/setup.c | |
| parent | perf tools: Fix tracing info recording (diff) | |
| download | kernel-cf9580036a830f9e95f32dbcedfc57ea1697f120.tar.gz kernel-cf9580036a830f9e95f32dbcedfc57ea1697f120.zip | |
perf ui browser: Use libslang to read keys
Just another step in stopping the use of libnewt in perf.
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/ui/setup.c')
| -rw-r--r-- | tools/perf/util/ui/setup.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/util/ui/setup.c b/tools/perf/util/ui/setup.c index 5111f1ae0447..1e6ba06980c4 100644 --- a/tools/perf/util/ui/setup.c +++ b/tools/perf/util/ui/setup.c @@ -18,6 +18,18 @@ static void newt_suspend(void *d __used) newtResume(); } +static int ui__init(void) +{ + int err = SLkp_init(); + + if (err < 0) + goto out; + + SLkp_define_keysym((char *)"^(kB)", SL_KEY_UNTAB); +out: + return err; +} + static void ui__exit(void) { SLtt_set_cursor_visibility(1); @@ -44,6 +56,7 @@ void setup_browser(bool fallback_to_pager) use_browser = 1; newtInit(); + ui__init(); newtSetSuspendCallback(newt_suspend, NULL); ui_helpline__init(); ui_browser__init(); |
