Use dashes for both TUI bottom borders
This commit is contained in:
parent
7cf0accf73
commit
78f2929dd9
1 changed files with 7 additions and 7 deletions
14
irc9.c
14
irc9.c
|
|
@ -2487,7 +2487,7 @@ static void draw_tree(void)
|
||||||
}
|
}
|
||||||
terminal_move(bottom, 0);
|
terminal_move(bottom, 0);
|
||||||
putchar('\\');
|
putchar('\\');
|
||||||
terminal_repeat('_', treew - 2);
|
terminal_repeat('-', treew - 2);
|
||||||
putchar('/');
|
putchar('/');
|
||||||
fputs("\033[0m", stdout);
|
fputs("\033[0m", stdout);
|
||||||
position_tree(0, 0);
|
position_tree(0, 0);
|
||||||
|
|
@ -2604,7 +2604,7 @@ static void draw_title(void)
|
||||||
fputs("\033[0m", stdout);
|
fputs("\033[0m", stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void draw_pane_divider(int row, int opening, int fill, int closing)
|
static void draw_pane_divider(int row, int opening, int closing)
|
||||||
{
|
{
|
||||||
int left = lines > 5 && treew >= 2 ? treew : 0;
|
int left = lines > 5 && treew >= 2 ? treew : 0;
|
||||||
terminal_move(row, left);
|
terminal_move(row, left);
|
||||||
|
|
@ -2612,10 +2612,10 @@ static void draw_pane_divider(int row, int opening, int fill, int closing)
|
||||||
int width = cols - left;
|
int width = cols - left;
|
||||||
if (width > 1) {
|
if (width > 1) {
|
||||||
putchar(opening);
|
putchar(opening);
|
||||||
terminal_repeat(fill, width - 2);
|
terminal_repeat('-', width - 2);
|
||||||
putchar(closing);
|
putchar(closing);
|
||||||
} else if (width == 1) {
|
} else if (width == 1) {
|
||||||
putchar(fill);
|
putchar('-');
|
||||||
}
|
}
|
||||||
fputs("\033[0m", stdout);
|
fputs("\033[0m", stdout);
|
||||||
}
|
}
|
||||||
|
|
@ -2641,7 +2641,7 @@ static int layout_topic(int draw)
|
||||||
if (draw && row < height) draw_irc_text(chat_top + row, left, text, width);
|
if (draw && row < height) draw_irc_text(chat_top + row, left, text, width);
|
||||||
free(text);
|
free(text);
|
||||||
}
|
}
|
||||||
if (draw && divider) draw_pane_divider(chat_top + height, '-', '-', '|');
|
if (draw && divider) draw_pane_divider(chat_top + height, '-', '|');
|
||||||
return height + divider;
|
return height + divider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2749,9 +2749,9 @@ static void redraw(void)
|
||||||
fputs("\033[?25l\033[0m\033[2J", stdout);
|
fputs("\033[?25l\033[0m\033[2J", stdout);
|
||||||
draw_title();
|
draw_title();
|
||||||
draw_tree();
|
draw_tree();
|
||||||
if (chat_top > 1) draw_pane_divider(1, '/', '-', '\\');
|
if (chat_top > 1) draw_pane_divider(1, '/', '\\');
|
||||||
draw_main();
|
draw_main();
|
||||||
if (lines >= 4) draw_pane_divider(lines - 3, '\\', '_', '/');
|
if (lines >= 4) draw_pane_divider(lines - 3, '\\', '/');
|
||||||
draw_status();
|
draw_status();
|
||||||
draw_input();
|
draw_input();
|
||||||
fputs("\033[?25h", stdout);
|
fputs("\033[?25h", stdout);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue