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;
void ui_browser__reset_index(struct ui_browser *self);
void ui_browser__gotorc(struct ui_browser *self, int y, int x);
+void ui_browser__write_graph(struct ui_browser *browser, int graph);
void __ui_browser__show_title(struct ui_browser *browser, const char *title);
void ui_browser__show_title(struct ui_browser *browser, const char *title);
int ui_browser__show(struct ui_browser *self, const char *title,
slsmg_write_nstring(" ", 9);
}
- SLsmg_set_char_set(1);
- SLsmg_write_char(SLSMG_VLINE_CHAR);
- SLsmg_set_char_set(0);
+ ui_browser__write_graph(self, SLSMG_VLINE_CHAR);
SLsmg_write_char(' ');
/* The scroll bar isn't being used */
if (ins__is_jump(dl->ins)) {
bool fwd = dl->ops.target > (u64)dl->offset;
- SLsmg_set_char_set(1);
- SLsmg_write_char(fwd ? SLSMG_DARROW_CHAR :
- SLSMG_UARROW_CHAR);
- SLsmg_set_char_set(0);
+ ui_browser__write_graph(self, fwd ? SLSMG_DARROW_CHAR :
+ SLSMG_UARROW_CHAR);
SLsmg_write_char(' ');
} else {
slsmg_write_nstring(" ", 2);
if (strcmp(dl->name, "retq")) {
slsmg_write_nstring(" ", 2);
} else {
- SLsmg_set_char_set(1);
- SLsmg_write_char(SLSMG_LARROW_CHAR);
- SLsmg_set_char_set(0);
+ ui_browser__write_graph(self, SLSMG_LARROW_CHAR);
SLsmg_write_char(' ');
}