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.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/title_bar.c b/title_bar.c
index 96d8bc5d..09182da3 100644
--- a/title_bar.c
+++ b/title_bar.c
@@ -63,6 +63,18 @@ void title_bar_disconnected(void)
     _title_bar_draw_status();
 }
 
+void title_bar_redraw(void)
+{
+    int rows, cols;
+    getmaxyx(stdscr, rows, cols);
+
+    title_bar = newwin(1, cols, 0, 0);
+    wbkgd(title_bar, COLOR_PAIR(3));
+    _title_bar_draw_title();
+    _title_bar_draw_status();
+    dirty = TRUE;
+}
+
 void title_bar_refresh(void)
 {
     if (dirty) {