From d6231bab89d634da5564491196b7c478db038505 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sat, 4 Mar 2006 18:16:49 +0000 Subject: Initial import. --- CRT.h | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 CRT.h (limited to 'CRT.h') diff --git a/CRT.h b/CRT.h new file mode 100644 index 00000000..32a94812 --- /dev/null +++ b/CRT.h @@ -0,0 +1,112 @@ +/* Do not edit this file. It was automatically genarated. */ + +#ifndef HEADER_CRT +#define HEADER_CRT +/* +htop - CRT.h +(C) 2004-2006 Hisham H. Muhammad +Released under the GNU GPL, see the COPYING file +in the source distribution for its full text. +*/ + + +#include +#include +#include +#include + +#include "String.h" + +#include "debug.h" + +#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 + +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]; + +extern int CRT_colorScheme; + +extern int CRT_delay; + +void CRT_init(); + +void CRT_done(); + +int CRT_readKey(); + +void CRT_handleSIGSEGV(int signal); + +void CRT_handleSIGTERM(int signal); + +void CRT_setColors(int colorScheme); + +void CRT_enableDelay(); + +void CRT_disableDelay(); + +#endif -- cgit v1.2.3