dbg-macro icon indicating copy to clipboard operation
dbg-macro copied to clipboard

Isatty detection on Windows

Open pravic opened this issue 3 years ago • 4 comments

Is here: https://github.com/softprops/atty/blob/master/src/lib.rs#L66

pravic avatar Aug 08 '20 04:08 pravic

I don't understand? This is a C++ library.

sharkdp avatar Aug 12 '20 05:08 sharkdp

Sorry for the confusion.

I was talking about Windows support: GetConsoleMode (and a workaround for msys via GetFileInformationByHandleEx).

pravic avatar Aug 12 '20 12:08 pravic

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

sharkdp avatar Aug 15 '20 11:08 sharkdp

see #99

sharkdp avatar Dec 31 '20 10:12 sharkdp