Skip to content

Force ANSI colour output when possible #44

@funnyboy-roks

Description

@funnyboy-roks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions