Handles failed logins correctly
This commit is contained in:
16
title_bar.c
16
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);
|
||||
|
||||
Reference in New Issue
Block a user