bool hasTerminal

Returns true if there is a terminal attached to stdout.

Source

bool get hasTerminal => _hasTerminal(_fd);