diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-04-20 16:26:14 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-04-20 16:26:14 -0300 |
commit | 59d038d591f7f00e6752cbfadbbc1c0ca318c5c0 (patch) | |
tree | a2147a6e3567a0dcf659ec9a7386fe81f4b748e7 /tools/perf/ui/browser.c | |
parent | c4cceae3ba786c136b0cf568359863d74897a48a (diff) | |
download | blackbird-op-linux-59d038d591f7f00e6752cbfadbbc1c0ca318c5c0.tar.gz blackbird-op-linux-59d038d591f7f00e6752cbfadbbc1c0ca318c5c0.zip |
ui browser: Add method to write graphical characters
To save typing on the switch char set slang stuff.
It also helps in removing more slang direct calls, wrapping them at the
ui_browser level, where at some point I'll try to implement those in
terms of GTK+.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-63yhb2htv9g3g1olmojzptkd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browser.c')
-rw-r--r-- | tools/perf/ui/browser.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/ui/browser.c b/tools/perf/ui/browser.c index a1b140cf75ac..973ff74e3640 100644 --- a/tools/perf/ui/browser.c +++ b/tools/perf/ui/browser.c @@ -593,6 +593,13 @@ unsigned int ui_browser__argv_refresh(struct ui_browser *browser) return row; } +void ui_browser__write_graph(struct ui_browser *browser __used, int graph) +{ + SLsmg_set_char_set(1); + SLsmg_write_char(graph); + SLsmg_set_char_set(0); +} + void ui_browser__init(void) { int i = 0; |