dbg-macro
dbg-macro copied to clipboard
Isatty detection on Windows
Is here: https://github.com/softprops/atty/blob/master/src/lib.rs#L66
I don't understand? This is a C++ library.
Sorry for the confusion.
I was talking about Windows support: GetConsoleMode
(and a workaround for msys via GetFileInformationByHandleEx
).
Ok, so you are just asking for a proper isatty
check on Windows, right? (to disabled colors if necessary)
I hope it is possible to put all the necessary code into this header-only library. It should go here: https://github.com/sharkdp/dbg-macro/blob/57e71b8a2f29bd4832647518e21a613e3854d877/dbg.h#L79-L81
see #99