Documentation

CliOutput
in package

Table of Contents

BLACK  = 0
BLUE  = 12
COLOR_OFF  = "\x1b[0m"
CYAN  = 14
DARK_BLUE  = 4
DARK_CYAN  = 6
DARK_GRAY  = 8
DARK_GREEN  = 2
DARK_PURPLE  = 5
DARK_RED  = 1
DARK_YELLOW  = 3
GRAY  = 7
GREEN  = 10
PURPLE  = 13
RED  = 9
WHITE  = 15
YELLOW  = 11
$bgColor  : string|null
$color  : string|null
$useColor  : bool
setColor()  : void
setUseColor()  : void
write()  : void
writeLine()  : void

Constants

Properties

$bgColor

protected string|null $bgColor = null

Methods

setColor()

public setColor(mixed $color[, mixed $bgColor = null ]) : void
Parameters
$color : mixed
$bgColor : mixed = null
Return values
void

setUseColor()

public setUseColor(bool $value) : void
Parameters
$value : bool
Return values
void

write()

public write(string $text) : void
Parameters
$text : string
Return values
void

writeLine()

public writeLine(string $text) : void
Parameters
$text : string
Return values
void

Search results