Output/Terminal.php
/**
     * Reads one char from STDIN. Will block until bytes are awailable.
     *
     * @access protected
     * @return string
     */
Reads one char from STDIN. Will block until bytes are awailable.
@access protected
@return string
Reads one char from STDIN . Will block until bytes are awailable . @access protected @return string
protected function _getc()
    {
        $read    = array(STDIN);
        $write   = NULL;
        $exclude = NULL;
        stream_select($read, $write, $exclude, null);
        stream_set_blocking(STDIN, 0);
        $char = stream_get_contents(STDIN, -1);
        return $char;
    }
protected function _getc ( ) { $ read = array ( STDIN ) ; $ write = NULL ; $ exclude = NULL ; stream_select ( $ read , $ write , $ exclude , null ) ; stream_set_blocking ( STDIN , 0 ) ; $ char = stream_get_contents ( STDIN , - 1 ) ; return $ char ; }
Reads one char from STDIN.
Reads one char from STDIN .