diff options
author | Immae <ismael.bouya@normalesup.org> | 2014-06-21 10:16:50 +0200 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-06-23 21:05:43 +0100 |
commit | 66ad23b35b3df519e45e2bf46741d8b874a18e74 (patch) | |
tree | 3e6d9eb4e174128b57c05098d191b2c1f108381c /src/ui/windows.c | |
parent | 5e841febd0c742745450598c4068b87ddca069b5 (diff) | |
download | profani-tty-66ad23b35b3df519e45e2bf46741d8b874a18e74.tar.gz |
having wprintw go through win_save_(v)print.
Signed-off-by: James Booth <boothj5@gmail.com>
Diffstat (limited to 'src/ui/windows.c')
-rw-r--r-- | src/ui/windows.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c index c2052cd8..d1ba16a2 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -394,10 +394,7 @@ wins_lost_connection(void) while (curr != NULL) { ProfWin *window = curr->data; if (window->type != WIN_CONSOLE) { - win_print_time(window, '-'); - wattron(window->win, COLOUR_ERROR); - wprintw(window->win, "%s\n", "Lost connection."); - wattroff(window->win, COLOUR_ERROR); + win_save_print(window, '-', NULL, 0, COLOUR_ERROR, "", "Lost connection."); // if current win, set current_win_dirty if (wins_is_current(window)) { |