Many compilers/runtimes will automatically strip colour when the program detects that it's not in a terminal. Often, we can get around this by specifying a flag like --color=always so it will print things like errors in colour. Since our frontend supports ANSI colour codes, we should have the built-in commands attempt to do this.
For example, with rust:
rustc -o solution solution.rs
# becomes
rustc -o solution --color=always solution.rs
Many compilers/runtimes will automatically strip colour when the program detects that it's not in a terminal. Often, we can get around this by specifying a flag like
--color=alwaysso it will print things like errors in colour. Since our frontend supports ANSI colour codes, we should have the built-in commands attempt to do this.For example, with rust:
rustc -o solution solution.rs # becomes rustc -o solution --color=always solution.rs