diff --git a/src/Console.php b/src/Console.php index b6a749f..b578053 100644 --- a/src/Console.php +++ b/src/Console.php @@ -993,6 +993,13 @@ class Console } // }}} + /** Return true if the TTY is enabled, or false if the program is called from pipe + */ + public function isTTY() + { + return !! $this->initSttyState; + } + /** Tokenize the provided line and aggragate if there is single or double * quotes. * Trim the spaces