about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-04-20 01:43:51 +0100
committerJames Booth <boothj5@gmail.com>2012-04-20 01:43:51 +0100
commit6648232ca77dd0bd00efaf382789ae03f90f7ff4 (patch)
tree543360ccc4708e10bd68da19afff8c2426c15574
parent53130f0e786b64c9c24e3c28f70992c235726a10 (diff)
downloadprofani-tty-6648232ca77dd0bd00efaf382789ae03f90f7ff4.tar.gz
Added is_active and is_new to status bar
-rw-r--r--status_bar.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/status_bar.c b/status_bar.c
index c343f3fe..f7047a3c 100644
--- a/status_bar.c
+++ b/status_bar.c
@@ -28,7 +28,8 @@
 
 static WINDOW *status_bar;
 static char _active[29] = "[ ][ ][ ][ ][ ][ ][ ][ ][  ]";
-
+static int is_active[9];
+static int is_new[9];
 static int dirty;
 static char curr_time[80];
 
@@ -36,9 +37,14 @@ static void _status_bar_update_time(void);
 
 void create_status_bar(void)
 {
-    int rows, cols;
+    int rows, cols, i;
     getmaxyx(stdscr, rows, cols);
 
+    for (i = 0; i < 9; i++) {
+        is_active[i] = FALSE;
+        is_new[i] = FALSE;
+    }
+
     status_bar = newwin(1, cols, rows-2, 0);
     wbkgd(status_bar, COLOR_PAIR(3));
     wattron(status_bar, COLOR_PAIR(4));