aboutsummaryrefslogtreecommitdiffstats
path: root/CRT.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:18 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:18 +0200
commit2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (patch)
treeafaa05858260763c1d25fa092f3905cf51ffd7b2 /CRT.h
parent031c3bb95f3d0a74d985286068baa6dd4d29d83f (diff)
downloaddebian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.gz
debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.bz2
debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.zip
Imported Upstream version 0.5.4upstream/0.5.4
Diffstat (limited to 'CRT.h')
-rw-r--r--CRT.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/CRT.h b/CRT.h
index 8e08eee..2bdcd9d 100644
--- a/CRT.h
+++ b/CRT.h
@@ -3,8 +3,8 @@
#ifndef HEADER_CRT
#define HEADER_CRT
/*
-htop
-(C) 2004 Hisham H. Muhammad
+htop - CRT.h
+(C) 2004,2005 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
@@ -19,19 +19,12 @@ in the source distribution for its full text.
#include "debug.h"
-#define WHITE_PAIR 0
-#define BLUE_PAIR 1
-#define GREEN_PAIR 2
-#define RED_PAIR 3
-#define BROWN_PAIR 4
-#define CYAN_PAIR 5
-#define BLACK_PAIR 6
-#define BLACK_CYAN_PAIR 7
-#define RED_CYAN_PAIR 8
-#define BLACK_GREEN_PAIR 9
-#define BLACK_WHITE_PAIR 10
-
-#define MIN_UPDATE_SLICE 15
+#define COLORSCHEME_DEFAULT 0
+#define COLORSCHEME_MONOCHROME 1
+#define COLORSCHEME_BLACKONWHITE 2
+#define COLORSCHEME_BLACKONWHITE2 3
+#define COLORSCHEME_MIDNIGHT 4
+#define COLORSCHEME_BLACKNIGHT 5
//#link curses
@@ -96,6 +89,8 @@ typedef enum ColorElements_ {
extern int CRT_colors[LAST_COLORELEMENT];
+extern int CRT_colorScheme;
+
extern int CRT_delay;
void CRT_init();
@@ -108,4 +103,6 @@ void CRT_handleSIGSEGV(int signal);
void CRT_handleSIGTERM(int signal);
+void CRT_setColors(int colorScheme);
+
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy