aboutsummaryrefslogtreecommitdiffstats
path: root/CRT.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:15 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:15 +0200
commitd3c9975943df58e293359b87905d19ff1fd52061 (patch)
treee416378879f60e8d538b1b25963904f767d30ff4 /CRT.h
downloaddebian_htop-d3c9975943df58e293359b87905d19ff1fd52061.tar.gz
debian_htop-d3c9975943df58e293359b87905d19ff1fd52061.tar.bz2
debian_htop-d3c9975943df58e293359b87905d19ff1fd52061.zip
Imported Upstream version 0.5upstream/0.5
Diffstat (limited to 'CRT.h')
-rw-r--r--CRT.h111
1 files changed, 111 insertions, 0 deletions
diff --git a/CRT.h b/CRT.h
new file mode 100644
index 0000000..55a4282
--- /dev/null
+++ b/CRT.h
@@ -0,0 +1,111 @@
+/* Do not edit this file. It was automatically genarated. */
+
+#ifndef HEADER_CRT
+#define HEADER_CRT
+/*
+htop
+(C) 2004 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 "String.h"
+
+#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
+
+//#link curses
+
+bool CRT_hasColors;
+
+
+typedef enum ColorElements_ {
+ RESET_COLOR,
+ DEFAULT_COLOR,
+ FUNCTION_BAR,
+ FUNCTION_KEY,
+ FAILED_SEARCH,
+ PANEL_HEADER_FOCUS,
+ PANEL_HEADER_UNFOCUS,
+ PANEL_HIGHLIGHT_FOCUS,
+ PANEL_HIGHLIGHT_UNFOCUS,
+ LARGE_NUMBER,
+ METER_TEXT,
+ METER_VALUE,
+ LED_COLOR,
+ UPTIME,
+ TASKS_TOTAL,
+ TASKS_RUNNING,
+ SWAP,
+ PROCESS,
+ PROCESS_SHADOW,
+ PROCESS_TAG,
+ PROCESS_MEGABYTES,
+ PROCESS_TREE,
+ PROCESS_R_STATE,
+ PROCESS_BASENAME,
+ PROCESS_HIGH_PRIORITY,
+ PROCESS_LOW_PRIORITY,
+ BAR_BORDER,
+ BAR_SHADOW,
+ GRAPH_1,
+ GRAPH_2,
+ GRAPH_3,
+ GRAPH_4,
+ GRAPH_5,
+ GRAPH_6,
+ GRAPH_7,
+ GRAPH_8,
+ GRAPH_9,
+ MEMORY_USED,
+ MEMORY_BUFFERS,
+ MEMORY_CACHE,
+ LOAD,
+ LOAD_AVERAGE_FIFTEEN,
+ LOAD_AVERAGE_FIVE,
+ LOAD_AVERAGE_ONE,
+ CHECK_BOX,
+ CHECK_MARK,
+ CHECK_TEXT,
+ CLOCK,
+ CPU_NICE,
+ CPU_NORMAL,
+ CPU_KERNEL,
+ HELP_BOLD,
+ LAST_COLORELEMENT
+} ColorElements;
+
+extern int CRT_colors[LAST_COLORELEMENT];
+
+
+
+void CRT_init();
+
+void CRT_done();
+
+int CRT_readKey();
+
+void CRT_handleSIGSEGV(int signal);
+
+void CRT_handleSIGTERM(int signal);
+
+#endif

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