Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
yii
helpers
BaseConsole
xtermBgColor
yii\helpers\BaseConsole::xtermBgColor PHP Method
BaseConsole Class Documentation
Datei anzeigen
Open project: yiisoft/yii2
xtermBgColor()
public
static
method
You can pass the return value of this to one of the formatting methods: [[ansiFormat]], [[ansiFormatCode]], [[beginAnsiFormat]]
See also:
http://en.wikipedia.org/wiki/Talk:ANSI_escape_code#xterm-256colors
public
static
xtermBgColor
(
integer
$colorCode
) :
string
$colorCode
integer
xterm color code
return
string
public static function xtermBgColor($colorCode) { return '48;5;' . $colorCode; }
BaseConsole
ansiFormat
ansiFormatCode
ansiStrlen
ansiToHtml
beginAnsiFormat
clearLine
clearLineAfterCursor
clearLineBeforeCursor
clearScreen
clearScreenAfterCursor
clearScreenBeforeCursor
confirm
endAnsiFormat
endProgress
error
escape
getScreenSize
hideCursor
input
isRunningOnWindows
markdownToAnsi
moveCursorBackward
moveCursorDown
moveCursorForward
moveCursorNextLine
moveCursorPrevLine
moveCursorTo
moveCursorUp
output
prompt
renderColoredString
restoreCursorPosition
saveCursorPosition
scrollDown
scrollUp
select
showCursor
startProgress
stderr
stdin
stdout
streamSupportsAnsiColors
stripAnsiFormat
updateProgress
wrapText
xtermBgColor
xtermFgColor