Handles failed logins correctly

This commit is contained in:
James Booth
2012-02-17 00:42:41 +00:00
parent 3be10300f4
commit 03b90cf5ab
9 changed files with 86 additions and 14 deletions

View File

@@ -15,6 +15,22 @@ void create_title_bar(void)
title_bar_show(title);
}
void title_bar_connected(void)
{
int rows, cols;
getmaxyx(stdscr, rows, cols);
mvwprintw(title_bar, 0, cols - 12, " connected");
}
void title_bar_disconnected(void)
{
int rows, cols;
getmaxyx(stdscr, rows, cols);
mvwprintw(title_bar, 0, cols - 12, "disconnected");
}
void title_bar_refresh(void)
{
touchwin(title_bar);