property
hasTerminal

bool hasTerminal
read-only

Returns true if there is a terminal attached to stdout.