johnyob / grace

A fancy diagnostics library that allows your compilers to exit with grace
MIT License
69 stars 2 forks source link

Detecting if the output is a tty. #35

Open francoisthire opened 3 weeks ago

francoisthire commented 3 weeks ago

The output where the error message may or may not be a tty (for example is the output is redirected to a file). I think it is expected by default that when the output is not a tty, there is no ANSI characters.