From 5fcf47d77a3ef4437302906223ea4b191ff8244c Mon Sep 17 00:00:00 2001 From: Louis-Guillaume DUBOIS Date: Sat, 2 May 2015 19:46:02 +0200 Subject: [PATCH] adds colors to log_sent_w --- src/display.cpp | 4 ++++ src/display.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/display.cpp b/src/display.cpp index c9bb21d..ca3f200 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -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); diff --git a/src/display.h b/src/display.h index 07127e5..26b2891 100644 --- a/src/display.h +++ b/src/display.h @@ -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;