Метод | Описание | |
---|---|---|
__construct ( |
||
getTerminalDimensions ( ) : array | 获取当前终端的尺寸 | |
renderException ( Exception $e ) | ||
setDecorated ( $decorated ) | ||
write ( $messages, $newline = false, $type = Output::OUTPUT_NORMAL, $stream = null ) |
Метод | Описание | |
---|---|---|
doWrite ( string $message, boolean $newline, null $stream = null ) | 将消息写入到输出。 | |
getTerminalHeight ( ) : integer | null | 获取终端高度 | |
getTerminalWidth ( ) : integer | null | 获取终端宽度 | |
hasColorSupport ( $stream ) : boolean | 是否支持着色 | |
hasStderrSupport ( ) : boolean | 当前环境是否支持写入控制台输出到stderr. | |
hasStdoutSupport ( ) : boolean | 当前环境是否支持写入控制台输出到stdout. |
Метод | Описание | |
---|---|---|
getMode ( ) : string | 获取终端模式 | |
getSttyColumns ( ) : string | 获取stty列数 | |
isRunningOS400 ( ) | ||
openErrorStream ( ) : resource | ||
openOutputStream ( ) : resource | ||
splitStringByWidth ( $string, $width ) | ||
stringWidth ( $string ) |
public getTerminalDimensions ( ) : array | ||
Результат | array |
protected getTerminalHeight ( ) : integer | null | ||
Результат | integer | null |
protected getTerminalWidth ( ) : integer | null | ||
Результат | integer | null |
protected hasColorSupport ( $stream ) : boolean | ||
$stream | ||
Результат | boolean |
protected hasStderrSupport ( ) : boolean | ||
Результат | boolean |
protected hasStdoutSupport ( ) : boolean | ||
Результат | boolean |
public write ( $messages, $newline = false, $type = Output::OUTPUT_NORMAL, $stream = null ) |