diff options
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/ui/util.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/perf/util/ui/util.c b/tools/perf/util/ui/util.c index 360f43fd5400..ad4374a16bb0 100644 --- a/tools/perf/util/ui/util.c +++ b/tools/perf/util/ui/util.c | |||
@@ -108,9 +108,13 @@ int ui_browser__input_window(const char *title, const char *text, char *input, | |||
108 | max_len -= 2; | 108 | max_len -= 2; |
109 | SLsmg_write_wrapped_string((unsigned char *)text, y, x, | 109 | SLsmg_write_wrapped_string((unsigned char *)text, y, x, |
110 | nr_lines, max_len, 1); | 110 | nr_lines, max_len, 1); |
111 | y += nr_lines + 1; | 111 | y += nr_lines; |
112 | SLsmg_set_color(0); | 112 | len = 5; |
113 | SLsmg_draw_box(y - 1, x + 1, 3, max_len - 2); | 113 | while (len--) { |
114 | SLsmg_gotorc(y + len - 1, x); | ||
115 | SLsmg_write_nstring((char *)" ", max_len); | ||
116 | } | ||
117 | SLsmg_draw_box(y++, x + 1, 3, max_len - 2); | ||
114 | 118 | ||
115 | SLsmg_gotorc(y + 3, x); | 119 | SLsmg_gotorc(y + 3, x); |
116 | SLsmg_write_nstring((char *)exit_msg, max_len); | 120 | SLsmg_write_nstring((char *)exit_msg, max_len); |