aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index d764ad5..c51e191 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -91,7 +91,7 @@ const std::string get_current_datetime() {
SalticidaeError::SalticidaeError() : msg("unknown") {}
void Logger::set_color() {
- if (isatty(output))
+ if (is_tty())
{
color_info = TTY_COLOR_GREEN;
color_debug = TTY_COLOR_BLUE;