Skip to content

Commit 00255b8

Browse files
authored
Merge pull request #1389 from joto/disable-color-on-windows
Do not print ANSI color sequences on Windows
2 parents 0ece4cc + ab96aeb commit 00255b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/logging.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ class logger
8080
bool m_log_sql = false;
8181
bool m_log_sql_data = false;
8282
bool m_show_progress = true;
83+
84+
#ifdef _WIN32
85+
bool m_use_color = false;
86+
#else
8387
bool m_use_color = osmium::util::isatty(2);
88+
#endif
8489

8590
}; // class logger
8691

0 commit comments

Comments
 (0)