summaryrefslogtreecommitdiff
path: root/library/include/ColorText.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/include/ColorText.h')
-rw-r--r--library/include/ColorText.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/include/ColorText.h b/library/include/ColorText.h
index 105832ef..0cc286dc 100644
--- a/library/include/ColorText.h
+++ b/library/include/ColorText.h
@@ -111,6 +111,8 @@ namespace DFHack
void printerr(const char *format, ...);
void vprinterr(const char *format, va_list args);
+ /// Get color
+ color_value color() { return cur_color; }
/// Set color (ANSI color number)
void color(color_value c);
/// Reset color to default