1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Added different colour for notifications

For terminals (e.g. gnome-terminal) that do
not support blinking
This commit is contained in:
James Booth 2012-04-23 22:18:23 +01:00
parent 685b3dd922
commit 34fc382760

View File

@ -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;