From 6648232ca77dd0bd00efaf382789ae03f90f7ff4 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 20 Apr 2012 01:43:51 +0100 Subject: Added is_active and is_new to status bar --- status_bar.c | 10 ++++++++-- 1 file 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)); -- cgit 1.4.1-2-gfad0