summaryrefslogtreecommitdiff
path: root/library/Core.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-03-31 15:40:54 +0400
committerAlexander Gavrilov2012-03-31 15:40:54 +0400
commit0f41608ed4b808205dd8734bbc52de64f6501c98 (patch)
tree63229bc9c5cf3c37be28b062bae951bcfae8fb33 /library/Core.cpp
parent9384f0c842f817bf810b34e44bfa3be913e7e3fc (diff)
downloaddfhack-0f41608ed4b808205dd8734bbc52de64f6501c98.tar.gz
dfhack-0f41608ed4b808205dd8734bbc52de64f6501c98.tar.bz2
dfhack-0f41608ed4b808205dd8734bbc52de64f6501c98.tar.xz
Pull console output support and REPL out of dfusion into core lib.
Diffstat (limited to 'library/Core.cpp')
-rw-r--r--library/Core.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/library/Core.cpp b/library/Core.cpp
index 4712be0a..8adbf374 100644
--- a/library/Core.cpp
+++ b/library/Core.cpp
@@ -757,6 +757,16 @@ std::string Core::getHotkeyCmd( void )
return returner;
}
+void Core::print(const char *format, ...)
+{
+ color_ostream_proxy proxy(getInstance().con);
+
+ va_list args;
+ va_start(args,format);
+ proxy.vprint(format,args);
+ va_end(args);
+}
+
void Core::printerr(const char *format, ...)
{
color_ostream_proxy proxy(getInstance().con);