diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-21 23:27:31 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-21 23:27:31 -0200 |
commit | 3383d8e5561dfc6fb2b65e0a194df94ccb5e08af (patch) | |
tree | dafba704561386b31b6b8af6dafb5b9a2ba7453c /CRT.h | |
parent | 36b78328843d0dae0d0fadbd0e814a8a1546327c (diff) |
Sorry about the mega-patch.
This is a work-in-progress, code is currently broken.
(Some actions, and notably, the header, are missing.)
Diffstat (limited to 'CRT.h')
-rw-r--r-- | CRT.h | 28 |
1 files changed, 19 insertions, 9 deletions
@@ -31,6 +31,17 @@ in the source distribution for its full text. #include <stdbool.h> +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. |