Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
PhpSchool
CliMenu
Terminal
UnixTerminal
getWidth
PhpSchool\CliMenu\Terminal\UnixTerminal::getWidth PHP Method
UnixTerminal Class Documentation
Show file
Open project: php-school/cli-menu
getWidth()
public
method
Get the available width of the terminal
public
getWidth
( ) :
integer
return
integer
public function getWidth() { return $this->width ?: ($this->width = (int) exec('tput cols')); }
UnixTerminal
__construct
clean
clear
clearLine
disableCursor
enableCursor
getDetails
getHeight
getKeyedInput
getOriginalConfiguration
getWidth
isCanonical
isTTY
moveCursorToColumn
moveCursorToRow
moveCursorToTop
setCanonicalMode
supportsColour