mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 04:06:21 +00:00
Added different colour for notifications
For terminals (e.g. gnome-terminal) that do not support blinking
This commit is contained in:
@@ -129,10 +129,12 @@ void status_bar_active(const int win)
|
|||||||
int rows, cols;
|
int rows, cols;
|
||||||
getmaxyx(stdscr, rows, cols);
|
getmaxyx(stdscr, rows, cols);
|
||||||
|
|
||||||
|
wattron(status_bar, COLOR_PAIR(4));
|
||||||
if (win < 9)
|
if (win < 9)
|
||||||
mvwprintw(status_bar, 0, cols - 29 + active_pos, "%d", win+1);
|
mvwprintw(status_bar, 0, cols - 29 + active_pos, "%d", win+1);
|
||||||
else
|
else
|
||||||
mvwprintw(status_bar, 0, cols - 29 + active_pos, "10");
|
mvwprintw(status_bar, 0, cols - 29 + active_pos, "10");
|
||||||
|
wattroff(status_bar, COLOR_PAIR(4));
|
||||||
|
|
||||||
dirty = TRUE;
|
dirty = TRUE;
|
||||||
}
|
}
|
||||||
@@ -147,11 +149,13 @@ void status_bar_new(const int win)
|
|||||||
int rows, cols;
|
int rows, cols;
|
||||||
getmaxyx(stdscr, rows, cols);
|
getmaxyx(stdscr, rows, cols);
|
||||||
|
|
||||||
|
wattron(status_bar, COLOR_PAIR(3));
|
||||||
wattron(status_bar, A_BLINK);
|
wattron(status_bar, A_BLINK);
|
||||||
if (win < 9)
|
if (win < 9)
|
||||||
mvwprintw(status_bar, 0, cols - 29 + active_pos, "%d", win+1);
|
mvwprintw(status_bar, 0, cols - 29 + active_pos, "%d", win+1);
|
||||||
else
|
else
|
||||||
mvwprintw(status_bar, 0, cols - 29 + active_pos, "10");
|
mvwprintw(status_bar, 0, cols - 29 + active_pos, "10");
|
||||||
|
wattroff(status_bar, COLOR_PAIR(3));
|
||||||
wattroff(status_bar, A_BLINK);
|
wattroff(status_bar, A_BLINK);
|
||||||
|
|
||||||
dirty = TRUE;
|
dirty = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user