Zend\Console\Adapter\AbstractAdapter::writeTextBlock
Write a block of text at the given coordinates, matching the supplied width and height.
In case a line of text does not fit desired width, it will be wrapped to the next line. In case the whole text does not fit in desired height, it will be truncated.
Signature
public function writeTextBlock(string
$text,
[int
$width = null,
[int|null
$height = null,
[int
$x = 0,
[int
$y = 0,
[null|int
$color = null,
[null|int
$bgColor = null]]]]]] )
Parameters
$text
— string- Text to write
$width
— int- Maximum block width. Negative value means distance from right edge.
$height
— object- Maximum block height. Negative value means distance from bottom edge.
$x
— integer- Block X coordinate (column)
$y
— integer- Block Y coordinate (row)
$color
— object- (optional) Text color
$bgColor
— object- (optional) Text background color