diff options
| author | Petr Mrázek | 2011-06-25 08:05:17 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-06-25 08:05:17 +0200 |
| commit | 722531f590a9f099b671c641d4c5afe3a2658b20 (patch) | |
| tree | 3c8115d78f53e7ea1ade8245b3a465c694a894a7 /library/Console-linux.cpp | |
| parent | 6fd7d42f0093ec5d057f35cd0a652c9ad254fc30 (diff) | |
| download | dfhack-722531f590a9f099b671c641d4c5afe3a2658b20.tar.gz dfhack-722531f590a9f099b671c641d4c5afe3a2658b20.tar.bz2 dfhack-722531f590a9f099b671c641d4c5afe3a2658b20.tar.xz | |
Added destructor code for PluginManager, console color reset funstion.
Diffstat (limited to 'library/Console-linux.cpp')
| -rw-r--r-- | library/Console-linux.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/Console-linux.cpp b/library/Console-linux.cpp index 125b6cc4..b47e1274 100644 --- a/library/Console-linux.cpp +++ b/library/Console-linux.cpp @@ -76,6 +76,7 @@ const char * ANSI_LIGHTBLUE = "\033[01;34m"; const char * ANSI_LIGHTMAGENTA = "\033[01;35m"; const char * ANSI_LIGHTCYAN = "\033[01;36m"; const char * ANSI_WHITE = "\033[01;37m"; +const char * RESETCOLOR = "\033[0m"; const char * getANSIColor(const int c) { @@ -106,6 +107,12 @@ void Console::color(int index) dfout << getANSIColor(index); } +void Console::reset_color( void ) +{ + dfout << RESETCOLOR; +} + + void Console::cursor(bool enable) { if(enable) |
