PHP Интерфейс PhpSchool\CliMenu\Terminal\TerminalInterface

Автор: Michael Woodward ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
clean ( ) : void Clean the whole console without jumping the window
clear ( ) : void Clear the terminal window
clearLine ( ) : void Clear the current cursors line
disableCursor ( ) Disable cursor display
enableCursor ( ) Enable cursor display
getDetails ( ) : string Get terminal details
getHeight ( ) : integer Get the available height of the terminal
getKeyedInput ( ) : string
getWidth ( ) : integer Get the available width of the terminal
isCanonical ( ) : boolean Check if TTY is in canonical mode
isTTY ( ) : boolean Test whether terminal is valid TTY
moveCursorToColumn ( integer $columnNumber ) Move the cursor to a specific column
moveCursorToRow ( integer $rowNumber ) Move the cursor to the start of a specific row
moveCursorToTop ( ) : void Move the cursor to the top left of the window
setCanonicalMode ( boolean $useCanonicalMode = true ) Toggle canonical mode on TTY
supportsColour ( ) : boolean Test whether terminal supports colour output

Описание методов

clean() публичный Метод

Clean the whole console without jumping the window
public clean ( ) : void
Результат void

clear() публичный Метод

Clear the terminal window
public clear ( ) : void
Результат void

clearLine() публичный Метод

Clear the current cursors line
public clearLine ( ) : void
Результат void

disableCursor() публичный Метод

Disable cursor display
public disableCursor ( )

enableCursor() публичный Метод

Enable cursor display
public enableCursor ( )

getDetails() публичный Метод

Get terminal details
public getDetails ( ) : string
Результат string

getHeight() публичный Метод

Get the available height of the terminal
public getHeight ( ) : integer
Результат integer

getKeyedInput() публичный Метод

public getKeyedInput ( ) : string
Результат string

getWidth() публичный Метод

Get the available width of the terminal
public getWidth ( ) : integer
Результат integer

isCanonical() публичный Метод

Check if TTY is in canonical mode
public isCanonical ( ) : boolean
Результат boolean

isTTY() публичный Метод

Test whether terminal is valid TTY
public isTTY ( ) : boolean
Результат boolean

moveCursorToColumn() публичный Метод

Move the cursor to a specific column
public moveCursorToColumn ( integer $columnNumber )
$columnNumber integer

moveCursorToRow() публичный Метод

Move the cursor to the start of a specific row
public moveCursorToRow ( integer $rowNumber )
$rowNumber integer

moveCursorToTop() публичный Метод

Move the cursor to the top left of the window
public moveCursorToTop ( ) : void
Результат void

setCanonicalMode() публичный Метод

Toggle canonical mode on TTY
public setCanonicalMode ( boolean $useCanonicalMode = true )
$useCanonicalMode boolean

supportsColour() публичный Метод

Test whether terminal supports colour output
public supportsColour ( ) : boolean
Результат boolean