Skip to content

Commit ab96aeb

Browse files
committed
Do not print ANSI color sequences on Windows
The Windows console doesn't support ANSI color sequences, so we don't print then. Messages will just be without color.
1 parent 0ece4cc commit ab96aeb

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)