When I run a Javascript file with Deno ...
// file.js
console.log(42)
... doing deno run file.js, then Deno prints ...
←[33m42←[39m
... to the standard Windows 7 console (cmd.exe). What is this, and how can I disable this?
When I run a Javascript file with Deno ...
// file.js
console.log(42)
... doing deno run file.js, then Deno prints ...
←[33m42←[39m
... to the standard Windows 7 console (cmd.exe). What is this, and how can I disable this?
On Windows 7 code coloring is not supported in the standard cmd.exe, resulting in these strange characters.
If you add an environment variable NO_COLOR=true Deno will not try to color the output anymore and the weird characters will disappear. If you remove the variable again you may have to restart Windows in order to get back the coloring.
See also deno help where I got this from.
A helpful tool to edit environment variables is RapidEE.
If you want the colors, try out a console emulator like for example cmder.