adds colors to log_sent_w

This commit is contained in:
Louis-Guillaume DUBOIS 2015-05-02 19:46:02 +02:00
parent f211313cd5
commit 5fcf47d77a
2 changed files with 5 additions and 0 deletions

View file

@ -33,6 +33,10 @@ Curses::Curses() {
log_sent_w = newwin(log_sent_w_lines, log_sent_w_columns,
0, cmd_kbd_columns + 1);
log_line_number = log_sent_w_lines - 1;
wattron(log_sent_w, A_BOLD);
start_color();
init_pair(1, COLOR_RED, COLOR_BLACK);
wattron(log_sent_w, COLOR_PAIR(1));
scrollok(log_sent_w, TRUE);

View file

@ -25,6 +25,7 @@ class Curses
static const int log_sent_w_columns;
int log_line_number;
WINDOW* log_sent_w;
WINDOW* log_sent_title;
static const int nav_data_lines;
static const int nav_data_columns;