Object wrapper for interacting with stdin
$_canReadline
protected boolean
Can this instance use readline? Two conditions must be met: 1. Readline support must be enabled. 2. Handle we are attached to must be stdin. Allows rich editing with arrow keys and history when inputting a string.
$_input
protected resource
__construct( string $handle 'php://stdin' )
Constructor
$handle
optional 'php://stdin' dataAvailable( integer $timeout 0 )
Check if data is available on stdin
$timeout
optional 0 protected boolean
Can this instance use readline? Two conditions must be met: 1. Readline support must be enabled. 2. Handle we are attached to must be stdin. Allows rich editing with arrow keys and history when inputting a string.
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Console.ConsoleInput.html