Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RailControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ along with RailControl; see the file LICENCE. If not see
#include <iostream>
#include <signal.h>
#include <sstream>
#include <unistd.h> //close;
#include <unistd.h> //close; isatty
#include <vector>

#include "ArgumentHandler.h"
Expand Down Expand Up @@ -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);
}
Expand Down