Strip ANSI from text output #184

pull/185/merge
Matti Pastell 2019-02-27 16:19:14 +02:00
parent 8d1bb63b0a
commit 73584edd34
1 changed files with 1 additions and 0 deletions

View File

@ -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