diff options
author | James Booth <boothj5@gmail.com> | 2012-02-17 00:42:41 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-02-17 00:42:41 +0000 |
commit | 03b90cf5abfcd802fd901ba2879388be209d7b5e (patch) | |
tree | ed00ee4b4d32ade068aa7e60ab24b5dc0ea9c115 /title_bar.c | |
parent | 3be10300f4710b959ea795143c5d6ad261942b76 (diff) | |
download | profani-tty-03b90cf5abfcd802fd901ba2879388be209d7b5e.tar.gz |
Handles failed logins correctly
Diffstat (limited to 'title_bar.c')
-rw-r--r-- | title_bar.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/title_bar.c b/title_bar.c index 17727f77..0eb7a640 100644 --- a/title_bar.c +++ b/title_bar.c @@ -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); |