Console : allow to know if the TTY is enabled (or if the console is called from pipe)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user