aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/ConsoleInput.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/ConsoleInput.hx')
-rw-r--r--src/server/ConsoleInput.hx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/ConsoleInput.hx b/src/server/ConsoleInput.hx
index e0712f5..f729e0d 100644
--- a/src/server/ConsoleInput.hx
+++ b/src/server/ConsoleInput.hx
@@ -57,6 +57,7 @@ class ConsoleInput {
output: process.stdout,
completer: onCompletion
});
+ final originalTrace = haxe.Log.trace;
haxe.Log.trace = (msg:Dynamic, ?infos:haxe.PosInfos) -> {
Readline.clearLine(process.stdout, 0);
Readline.cursorTo(process.stdout, 0, null);
@@ -68,7 +69,9 @@ class ConsoleInput {
parseLine(line);
rl.prompt();
});
- // rl.on("close", exit);
+ rl.on("close", () -> {
+ haxe.Log.trace = originalTrace;
+ });
}
function formatOutput(v:Dynamic, infos:haxe.PosInfos):String {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage