From 73584edd345096086a0833506a9a0531d7fcb433 Mon Sep 17 00:00:00 2001 From: Matti Pastell Date: Wed, 27 Feb 2019 16:19:14 +0200 Subject: [PATCH] Strip ANSI from text output #184 --- src/run.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/run.jl b/src/run.jl index fe89990..31418b3 100644 --- a/src/run.jl +++ b/src/run.jl @@ -247,6 +247,7 @@ function capture_output(expr, SandBox::Module, term, disp, out = fetch(reader) close(rw) end + out = replace(out, r"\u001b\[.*?m" => "") #Remove ANSI color codes return (obj, out) end