Commit version 24.12.13800
This commit is contained in:
@ -15,9 +15,9 @@ class Streams {
|
||||
|
||||
static public function isTty() {
|
||||
if ( function_exists('stream_isatty') ) {
|
||||
return !stream_isatty(static::$out);
|
||||
return stream_isatty(static::$out);
|
||||
} else {
|
||||
return (function_exists('posix_isatty') && !posix_isatty(static::$out));
|
||||
return (function_exists('posix_isatty') && posix_isatty(static::$out));
|
||||
}
|
||||
}
|
||||
|
||||
@ -160,7 +160,7 @@ class Streams {
|
||||
* @return string The users input.
|
||||
* @see cli\input()
|
||||
*/
|
||||
public static function prompt( $question, $default = null, $marker = ': ', $hide = false ) {
|
||||
public static function prompt( $question, $default = false, $marker = ': ', $hide = false ) {
|
||||
if( $default && strpos( $question, '[' ) === false ) {
|
||||
$question .= ' [' . $default . ']';
|
||||
}
|
||||
|
Reference in New Issue
Block a user