basalt-rs/bedrock

Force ANSI colour output when possible

Open

#44 opened on Oct 10, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (0 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide