1
0
Fork 0

colors only for ttys

This commit is contained in:
Jan Steemann 2015-08-20 22:26:39 +02:00
parent 8ee12f7a27
commit f5e5977eca
1 changed files with 1 additions and 1 deletions

View File

@ -880,7 +880,7 @@ void ArangoClient::shutup () {
////////////////////////////////////////////////////////////////////////////////
bool ArangoClient::colors () const {
return ! _noColors;
return (! _noColors && isatty(STDIN_FILENO));
}
////////////////////////////////////////////////////////////////////////////////