Skip to content

Commit 65ef425

Browse files
committed
Fix terminal detection on unix
1 parent 39afe42 commit 65ef425

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/formatters/formatters_base.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ class Description;
1818
class ItBase;
1919

2020
inline bool is_terminal() {
21+
#ifdef _WIN32
2122
return _isatty(_fileno(stdout)) != 0;
23+
#else
24+
return isatty(fileno(stdout)) != 0;
25+
#endif
2226
}
2327
namespace Formatters {
2428

0 commit comments

Comments
 (0)