zig
zig copied to clipboard
Error message of `TERM=dumb zig run x.zig` is missing more than just color
Zig Version
0.10.0-dev.2836+2360f8c49
Steps to Reproduce
pub fn main() {}
TERM=dumb zig run x.zig
Expected Behavior
x.zig:1:15: error: expected return type expression, found '{'
pub fn main() {}
^
(without color)
Actual Behavior
x.zig:1:15: error: expected return type expression, found '{'
(no color (expected) and the error message is missing the source code and the caret (unexpected))
The output for dumb terminals can be improved to be on par with the output for non-dumb terminals, without escape sequences.
GCC gets it right: