From 34fc382760dd96b421f6b50117142226e4e7530d Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 23 Apr 2012 22:18:23 +0100 Subject: [PATCH] Added different colour for notifications For terminals (e.g. gnome-terminal) that do not support blinking --- status_bar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/status_bar.c b/status_bar.c index ec8ee4d6..bbdb3b9f 100644 --- a/status_bar.c +++ b/status_bar.c @@ -129,10 +129,12 @@ void status_bar_active(const int win) int rows, cols; getmaxyx(stdscr, rows, cols); + wattron(status_bar, COLOR_PAIR(4)); if (win < 9) mvwprintw(status_bar, 0, cols - 29 + active_pos, "%d", win+1); else mvwprintw(status_bar, 0, cols - 29 + active_pos, "10"); + wattroff(status_bar, COLOR_PAIR(4)); dirty = TRUE; } @@ -147,11 +149,13 @@ void status_bar_new(const int win) int rows, cols; getmaxyx(stdscr, rows, cols); + wattron(status_bar, COLOR_PAIR(3)); wattron(status_bar, A_BLINK); if (win < 9) mvwprintw(status_bar, 0, cols - 29 + active_pos, "%d", win+1); else mvwprintw(status_bar, 0, cols - 29 + active_pos, "10"); + wattroff(status_bar, COLOR_PAIR(3)); wattroff(status_bar, A_BLINK); dirty = TRUE;