From ea859f50d9438bc61ae96721a4d255b49de78653 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:20 +0200 Subject: Imported Upstream version 0.6.2 --- CRT.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'CRT.c') diff --git a/CRT.c b/CRT.c index 910485e..6b1d120 100644 --- a/CRT.c +++ b/CRT.c @@ -1,6 +1,6 @@ /* htop - CRT.c -(C) 2004,2005 Hisham H. Muhammad +(C) 2004-2006 Hisham H. Muhammad Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ @@ -18,6 +18,13 @@ in the source distribution for its full text. #define ColorPair(i,j) COLOR_PAIR((7-i)*8+j) +#define COLORSCHEME_DEFAULT 0 +#define COLORSCHEME_MONOCHROME 1 +#define COLORSCHEME_BLACKONWHITE 2 +#define COLORSCHEME_BLACKONWHITE2 3 +#define COLORSCHEME_MIDNIGHT 4 +#define COLORSCHEME_BLACKNIGHT 5 + #define Black COLOR_BLACK #define Red COLOR_RED #define Green COLOR_GREEN @@ -93,6 +100,8 @@ extern int CRT_delay; extern int CRT_colors[LAST_COLORELEMENT]; +extern int CRT_colorScheme; + }*/ // TODO: centralize these in Settings. @@ -187,7 +196,7 @@ void CRT_handleSIGTERM(int signal) { void CRT_setColors(int colorScheme) { CRT_colorScheme = colorScheme; if (colorScheme == COLORSCHEME_BLACKNIGHT) { - for (int i = 0; i < 8; i++) + for (int i = 0; i < 8; i++) for (int j = 0; j < 8; j++) init_pair((7-i)*8+j, i, j); } else { -- cgit v1.2.3