aboutsummaryrefslogtreecommitdiffstats
path: root/CRT.h
diff options
context:
space:
mode:
Diffstat (limited to 'CRT.h')
-rw-r--r--CRT.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/CRT.h b/CRT.h
index 9fc64f8..883c675 100644
--- a/CRT.h
+++ b/CRT.h
@@ -4,22 +4,13 @@
#define HEADER_CRT
/*
htop - CRT.h
-(C) 2004-2010 Hisham H. Muhammad
+(C) 2004-2011 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-
-#include <curses.h>
-#include <signal.h>
-#include <stdlib.h>
-#include <stdbool.h>
-//#include <execinfo.h>
-
-#include "String.h"
-
-#include "config.h"
-#include "debug.h"
+#ifdef HAVE_EXECINFO_H
+#endif
#define ColorPair(i,j) COLOR_PAIR((7-i)*8+j)
@@ -41,8 +32,7 @@ in the source distribution for its full text.
//#link curses
-bool CRT_hasColors;
-
+#include <stdbool.h>
typedef enum ColorElements_ {
RESET_COLOR,
@@ -86,6 +76,7 @@ typedef enum ColorElements_ {
GRAPH_9,
MEMORY_USED,
MEMORY_BUFFERS,
+ MEMORY_BUFFERS_TEXT,
MEMORY_CACHE,
LOAD,
LOAD_AVERAGE_FIFTEEN,
@@ -98,6 +89,7 @@ typedef enum ColorElements_ {
HELP_BOLD,
HOSTNAME,
CPU_NICE,
+ CPU_NICE_TEXT,
CPU_NORMAL,
CPU_KERNEL,
CPU_IOWAIT,
@@ -108,15 +100,21 @@ typedef enum ColorElements_ {
LAST_COLORELEMENT
} ColorElements;
+void CRT_fatalError(const char* note) __attribute__ ((noreturn));
-// TODO: centralize these in Settings.
-extern int CRT_delay;
+// TODO: centralize these in Settings.
extern int CRT_colorScheme;
+extern bool CRT_utf8;
+
extern int CRT_colors[LAST_COLORELEMENT];
+extern int CRT_cursorX;
+
+extern int CRT_scrollHAmount;
+
char* CRT_termType;
void *backtraceArray[128];
@@ -127,6 +125,8 @@ void CRT_init(int delay, int colorScheme);
void CRT_done();
+void CRT_fatalError(const char* note);
+
int CRT_readKey();
void CRT_disableDelay();