about summary refs log tree commit diff stats
path: root/title_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'title_bar.c')
-rw-r--r--title_bar.c16
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);