Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
yii
helpers
BaseConsole
xtermFgColor
yii\helpers\BaseConsole::xtermFgColor PHP Метод
Документация по классу BaseConsole
Показать файл
Открыть проект
xtermFgColor()
публичный
статический
Метод
You can pass the return value of this to one of the formatting methods: [[ansiFormat]], [[ansiFormatCode]], [[beginAnsiFormat]]
См. также:
http://en.wikipedia.org/wiki/Talk:ANSI_escape_code#xterm-256colors
public
static
xtermFgColor
(
integer
$colorCode
) :
string
$colorCode
integer
xterm color code
Результат
string
public static function xtermFgColor($colorCode) { return '38;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