1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 19:46:45 +02:00

Remove help window flicker

This commit is contained in:
Marin Ivanov
2016-07-27 02:07:31 +02:00
parent 402b86687f
commit f89638635a
2 changed files with 9 additions and 1 deletions

View File

@ -471,6 +471,11 @@ static void draw_window_tab(ToxWindow *toxwin)
static void draw_bar(void)
{
int y,x;
// save current cursor position
getyx(active_window->window, y, x);
attron(COLOR_PAIR(BLUE));
mvhline(LINES - 2, 0, '_', COLS);
attroff(COLOR_PAIR(BLUE));
@ -508,6 +513,9 @@ static void draw_bar(void)
attroff(A_BOLD);
}
// restore cursor position after drawing
move(y, x);
refresh();
}