From 841159c272ac08b1cd5bdef5167a8ce11383fbb5 Mon Sep 17 00:00:00 2001 From: Diogo Ferreira Date: Wed, 14 Jan 2015 11:13:52 +0000 Subject: htop: Update to 1.0.3 Change-Id: I416c44803b3a79c2fd752e342ea113875fa533e0 --- CRT.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'CRT.h') 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 -#include -#include -#include -//#include - -#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 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(); -- cgit v1.2.3