projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db6127
)
perf ui browser: Clean lines inside of the input window
author
Namhyung Kim
<namhyung.kim@lge.com>
Mon, 19 Mar 2012 02:46:20 +0000
(11:46 +0900)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Mon, 19 Mar 2012 15:07:30 +0000
(12:07 -0300)
As Arnaldo pointed out, it should be cleared to prevent the window from
displaying overlapped strings on the region.
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link:
http://lkml.kernel.org/r/1332125180-23041-1-git-send-email-namhyung.kim@lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/util.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/util/ui/util.c
b/tools/perf/util/ui/util.c
index 360f43fd54008eb7e259a34d60baaeeb64d0cf3d..ad4374a16bb08b88c008ca6e79fcf4a5b15903b5 100644
(file)
--- 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,
max_len -= 2;
SLsmg_write_wrapped_string((unsigned char *)text, y, x,
nr_lines, max_len, 1);
- y += nr_lines + 1;
- SLsmg_set_color(0);
- SLsmg_draw_box(y - 1, x + 1, 3, max_len - 2);
+ y += nr_lines;
+ len = 5;
+ while (len--) {
+ SLsmg_gotorc(y + len - 1, x);
+ SLsmg_write_nstring((char *)" ", max_len);
+ }
+ SLsmg_draw_box(y++, x + 1, 3, max_len - 2);
SLsmg_gotorc(y + 3, x);
SLsmg_write_nstring((char *)exit_msg, max_len);