sharkdp / dbg-macro

A dbg(…) macro for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Isatty detection on Windows

pravic opened this issue · comments

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:

dbg-macro/dbg.h

Lines 79 to 81 in 57e71b8

inline bool isColorizedOutputEnabled() {
return true;
}