From 6ad8d128ba452047389c542542fc942f79f30da7 Mon Sep 17 00:00:00 2001 From: jj Date: Mon, 27 Jan 2014 15:10:12 +0100 Subject: [PATCH] use non-interactive console when calling dfhack.init in TEXT mode --- library/Core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Core.cpp b/library/Core.cpp index 0f0b18ae7..96fd3903f 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -816,8 +816,8 @@ void fInitthread(void * iodata) { IODATA * iod = ((IODATA*) iodata); Core * core = iod->core; - Console & con = core->getConsole(); - core->loadScriptFile(con, "dfhack.init", true); + color_ostream_proxy out(core->getConsole()); + core->loadScriptFile(out, "dfhack.init", true); } // A thread function... for the interactive console.