johnyob / grace

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

Detecting if the output is a tty. #35

Open francoisthire opened 5 months ago

francoisthire commented 5 months 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.