diff options
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) | |||
18 | newtResume(); | 18 | newtResume(); |
19 | } | 19 | } |
20 | 20 | ||
21 | static int ui__init(void) | ||
22 | { | ||
23 | int err = SLkp_init(); | ||
24 | |||
25 | if (err < 0) | ||
26 | goto out; | ||
27 | |||
28 | SLkp_define_keysym((char *)"^(kB)", SL_KEY_UNTAB); | ||
29 | out: | ||
30 | return err; | ||
31 | } | ||
32 | |||
21 | static void ui__exit(void) | 33 | static void ui__exit(void) |
22 | { | 34 | { |
23 | SLtt_set_cursor_visibility(1); | 35 | SLtt_set_cursor_visibility(1); |
@@ -44,6 +56,7 @@ void setup_browser(bool fallback_to_pager) | |||
44 | 56 | ||
45 | use_browser = 1; | 57 | use_browser = 1; |
46 | newtInit(); | 58 | newtInit(); |
59 | ui__init(); | ||
47 | newtSetSuspendCallback(newt_suspend, NULL); | 60 | newtSetSuspendCallback(newt_suspend, NULL); |
48 | ui_helpline__init(); | 61 | ui_helpline__init(); |
49 | ui_browser__init(); | 62 | ui_browser__init(); |