diff --git a/RailControl.cpp b/RailControl.cpp index e130014d..6cb925a2 100644 --- a/RailControl.cpp +++ b/RailControl.cpp @@ -24,7 +24,7 @@ along with RailControl; see the file LICENCE. If not see #include #include #include -#include //close; +#include //close; isatty #include #include "ArgumentHandler.h" @@ -183,7 +183,7 @@ int main (int argc, char* argv[]) // wait for q or r followed by \n or SIGINT or SIGTERM do { - if (silent) + if (!isatty(STDIN_FILENO) || silent) { Utils::Utils::SleepForSeconds(1); }