summaryrefslogtreecommitdiff
path: root/library/Core.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-19 09:21:25 +0400
committerAlexander Gavrilov2012-08-19 09:21:25 +0400
commitfd0bf2ef929d3bc98570012b21e6e603c570a8f6 (patch)
treee6339698fa55793c6aa7899fe3e2a8a5f5afd9e0 /library/Core.cpp
parent8ed219d4e0cbea19c8a9489294a975b81946bba2 (diff)
downloaddfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.gz
dfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.bz2
dfhack-fd0bf2ef929d3bc98570012b21e6e603c570a8f6.tar.xz
Extract the color enum from color_ostream to toplevel.
Diffstat (limited to 'library/Core.cpp')
-rw-r--r--library/Core.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/Core.cpp b/library/Core.cpp
index bf0b3be7..71c92afe 100644
--- a/library/Core.cpp
+++ b/library/Core.cpp
@@ -358,7 +358,7 @@ command_result Core::runCommand(color_ostream &con, const std::string &first, ve
continue;
if (pcmd.isHotkeyCommand())
- con.color(Console::COLOR_CYAN);
+ con.color(COLOR_CYAN);
con.print("%s: %s\n",pcmd.name.c_str(), pcmd.description.c_str());
con.reset_color();
if (!pcmd.usage.empty())
@@ -481,7 +481,7 @@ command_result Core::runCommand(color_ostream &con, const std::string &first, ve
{
const PluginCommand & pcmd = (plug->operator[](j));
if (pcmd.isHotkeyCommand())
- con.color(Console::COLOR_CYAN);
+ con.color(COLOR_CYAN);
con.print(" %-22s - %s\n",pcmd.name.c_str(), pcmd.description.c_str());
con.reset_color();
}
@@ -519,7 +519,7 @@ command_result Core::runCommand(color_ostream &con, const std::string &first, ve
for(auto iter = out.begin();iter != out.end();iter++)
{
if ((*iter).recolor)
- con.color(Console::COLOR_CYAN);
+ con.color(COLOR_CYAN);
con.print(" %-22s- %s\n",(*iter).name.c_str(), (*iter).description.c_str());
con.reset_color();
}