zig icon indicating copy to clipboard operation
zig copied to clipboard

Error message of `TERM=dumb zig run x.zig` is missing more than just color

Open wooster0 opened this issue 1 year ago • 0 comments

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: image

wooster0 avatar Jul 12 '22 16:07 wooster0