mirror of https://gitee.com/bigwinds/arangodb
colors only for ttys
This commit is contained in:
parent
8ee12f7a27
commit
f5e5977eca
|
@ -880,7 +880,7 @@ void ArangoClient::shutup () {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
bool ArangoClient::colors () const {
|
bool ArangoClient::colors () const {
|
||||||
return ! _noColors;
|
return (! _noColors && isatty(STDIN_FILENO));
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue