mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 01:16:21 +00:00
Added win_refresh function
This commit is contained in:
@@ -100,7 +100,12 @@ win_print_line(ProfWin *window, const char * const msg, ...)
|
|||||||
wprintw(window->win, "%s\n", fmt_msg->str);
|
wprintw(window->win, "%s\n", fmt_msg->str);
|
||||||
g_string_free(fmt_msg, TRUE);
|
g_string_free(fmt_msg, TRUE);
|
||||||
va_end(arg);
|
va_end(arg);
|
||||||
|
win_refresh(window);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
win_refresh(ProfWin *window)
|
||||||
|
{
|
||||||
int rows, cols;
|
int rows, cols;
|
||||||
getmaxyx(stdscr, rows, cols);
|
getmaxyx(stdscr, rows, cols);
|
||||||
prefresh(window->win, window->y_pos, 0, 1, 0, rows-3, cols-1);
|
prefresh(window->win, window->y_pos, 0, 1, 0, rows-3, cols-1);
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ void win_free(ProfWin *window);
|
|||||||
|
|
||||||
void win_print_time(ProfWin *window, char show_char);
|
void win_print_time(ProfWin *window, char show_char);
|
||||||
void win_print_line(ProfWin *window, const char * const msg, ...);
|
void win_print_line(ProfWin *window, const char * const msg, ...);
|
||||||
|
void win_refresh(ProfWin *window);
|
||||||
void win_presence_colour_on(ProfWin *window, const char * const presence);
|
void win_presence_colour_on(ProfWin *window, const char * const presence);
|
||||||
void win_presence_colour_off(ProfWin *window, const char * const presence);
|
void win_presence_colour_off(ProfWin *window, const char * const presence);
|
||||||
void win_show_contact(ProfWin *window, PContact contact);
|
void win_show_contact(ProfWin *window, PContact contact);
|
||||||
|
|||||||
Reference in New Issue
Block a user