From 3383d8e5561dfc6fb2b65e0a194df94ccb5e08af Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 21 Jan 2015 23:27:31 -0200 Subject: Sorry about the mega-patch. This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.) --- CRT.h | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'CRT.h') diff --git a/CRT.h b/CRT.h index b77a83a7..1160f175 100644 --- a/CRT.h +++ b/CRT.h @@ -31,6 +31,17 @@ in the source distribution for its full text. #include +typedef enum TreeStr_ { + TREE_STR_HORZ, + TREE_STR_VERT, + TREE_STR_RTEE, + TREE_STR_BEND, + TREE_STR_TEND, + TREE_STR_OPEN, + TREE_STR_SHUT, + TREE_STR_COUNT +} TreeStr; + typedef enum ColorElements_ { RESET_COLOR, DEFAULT_COLOR, @@ -65,13 +76,6 @@ typedef enum ColorElements_ { 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_BUFFERS_TEXT, @@ -103,9 +107,11 @@ void CRT_fatalError(const char* note) __attribute__ ((noreturn)); void CRT_handleSIGSEGV(int sgn); -// TODO: centralize these in Settings. +extern const char *CRT_treeStrAscii[TREE_STR_COUNT]; -extern int CRT_colorScheme; +extern const char *CRT_treeStrUtf8[TREE_STR_COUNT]; + +extern const char **CRT_treeStr; extern bool CRT_utf8; @@ -117,6 +123,10 @@ extern int CRT_scrollHAmount; char* CRT_termType; +// TODO move color scheme to Settings, perhaps? + +extern int CRT_colorScheme; + void *backtraceArray[128]; // TODO: pass an instance of Settings instead. -- cgit v1.2.3