We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10ad90b commit 3765f26Copy full SHA for 3765f26
direwolf.c
@@ -59,6 +59,8 @@
59
#endif
60
61
#if __WIN32__
62
+#include <stdio.h>
63
+#include <io.h>
64
#else
65
#include <unistd.h>
66
#include <fcntl.h>
@@ -252,7 +254,11 @@ int main (int argc, char *argv[])
252
254
* something else such as "tee") but command line can override this.
253
255
*/
256
257
+#if __WIN32__
258
+ t_opt = _isatty(_fileno(stdout)) > 0;
259
+#else
260
t_opt = isatty(fileno(stdout));
261
+#endif
262
/* 1 = normal, 0 = no text colors. */
263
/* 2, 3, ... alternate escape sequences for different terminals. */
264
0 commit comments