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
beginAnsiFormat
yii\helpers\BaseConsole::beginAnsiFormat PHP Method
BaseConsole Class Documentation
Datei anzeigen
Open project: yiisoft/yii2
beginAnsiFormat()
public
static
method
Echoes an ANSI format code that affects the formatting of any text that is printed afterwards.
See also:
ansiFormatCode()
See also:
endAnsiFormat()
public
static
beginAnsiFormat
(
array
$format
)
$format
array
An array containing formatting values. You can pass any of the `FG_*`, `BG_*` and `TEXT_*` constants and also [[xtermFgColor]] and [[xtermBgColor]] to specify a format.
public static function beginAnsiFormat($format) { echo "[" . implode(';', $format) . 'm'; }
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