htop/CRT.h

133 lines
2.2 KiB
C
Raw Normal View History

2006-06-06 20:28:42 +00:00
/* Do not edit this file. It was automatically generated. */
2006-03-04 18:16:49 +00:00
#ifndef HEADER_CRT
#define HEADER_CRT
/*
htop - CRT.h
2011-05-26 16:35:07 +00:00
(C) 2004-2011 Hisham H. Muhammad
2006-03-04 18:16:49 +00:00
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
#ifdef HAVE_EXECINFO_H
#endif
2006-03-04 18:16:49 +00:00
2006-06-06 20:28:42 +00:00
#define ColorPair(i,j) COLOR_PAIR((7-i)*8+j)
2006-03-04 18:16:49 +00:00
#define COLORSCHEME_DEFAULT 0
#define COLORSCHEME_MONOCHROME 1
#define COLORSCHEME_BLACKONWHITE 2
#define COLORSCHEME_BLACKONWHITE2 3
#define COLORSCHEME_MIDNIGHT 4
#define COLORSCHEME_BLACKNIGHT 5
2006-06-06 20:28:42 +00:00
#define Black COLOR_BLACK
#define Red COLOR_RED
#define Green COLOR_GREEN
#define Yellow COLOR_YELLOW
#define Blue COLOR_BLUE
#define Magenta COLOR_MAGENTA
#define Cyan COLOR_CYAN
#define White COLOR_WHITE
2006-03-04 18:16:49 +00:00
//#link curses
2011-12-26 21:35:57 +00:00
#include <stdbool.h>
2006-03-04 18:16:49 +00:00
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,
BATTERY,
2006-03-04 18:16:49 +00:00
TASKS_RUNNING,
SWAP,
PROCESS,
PROCESS_SHADOW,
PROCESS_TAG,
PROCESS_MEGABYTES,
PROCESS_TREE,
PROCESS_R_STATE,
PROCESS_BASENAME,
PROCESS_HIGH_PRIORITY,
PROCESS_LOW_PRIORITY,
PROCESS_THREAD,
PROCESS_THREAD_BASENAME,
2006-03-04 18:16:49 +00:00
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,
HELP_BOLD,
HOSTNAME,
2006-03-04 18:16:49 +00:00
CPU_NICE,
CPU_NORMAL,
CPU_KERNEL,
CPU_IOWAIT,
CPU_IRQ,
CPU_SOFTIRQ,
CPU_STEAL,
CPU_GUEST,
2006-03-04 18:16:49 +00:00
LAST_COLORELEMENT
} ColorElements;
2006-06-06 20:28:42 +00:00
// TODO: centralize these in Settings.
2006-03-04 18:16:49 +00:00
2006-06-06 20:28:42 +00:00
extern int CRT_colorScheme;
extern bool CRT_utf8;
2006-06-06 20:28:42 +00:00
extern int CRT_colors[LAST_COLORELEMENT];
extern int CRT_cursorX;
char* CRT_termType;
void *backtraceArray[128];
2006-06-06 20:28:42 +00:00
// TODO: pass an instance of Settings instead.
void CRT_init(int delay, int colorScheme);
2006-03-04 18:16:49 +00:00
void CRT_done();
void CRT_fatalError(const char* note);
2006-03-04 18:16:49 +00:00
int CRT_readKey();
2006-06-06 20:28:42 +00:00
void CRT_disableDelay();
void CRT_enableDelay();
2006-03-04 18:16:49 +00:00
void CRT_setColors(int colorScheme);
#endif