| @@ 213-222 (lines=10) @@ | ||
| 210 | return $this; |
|
| 211 | } |
|
| 212 | ||
| 213 | public function setForegroundColour(string $colour, string $fallback = null) : self |
|
| 214 | { |
|
| 215 | $this->style['fg'] = ColourUtil::validateColour( |
|
| 216 | $this->terminal, |
|
| 217 | $colour, |
|
| 218 | $fallback |
|
| 219 | ); |
|
| 220 | ||
| 221 | return $this; |
|
| 222 | } |
|
| 223 | ||
| 224 | public function setWidth(int $width) : self |
|
| 225 | { |
|
| @@ 312-322 (lines=11) @@ | ||
| 309 | return $this->fg; |
|
| 310 | } |
|
| 311 | ||
| 312 | public function setFg(string $fg, string $fallback = null) : self |
|
| 313 | { |
|
| 314 | $this->fg = ColourUtil::validateColour( |
|
| 315 | $this->terminal, |
|
| 316 | $fg, |
|
| 317 | $fallback |
|
| 318 | ); |
|
| 319 | $this->generateColoursSetCode(); |
|
| 320 | ||
| 321 | return $this; |
|
| 322 | } |
|
| 323 | ||
| 324 | public function getBg() |
|
| 325 | { |
|
| @@ 329-339 (lines=11) @@ | ||
| 326 | return $this->bg; |
|
| 327 | } |
|
| 328 | ||
| 329 | public function setBg(string $bg, string $fallback = null) : self |
|
| 330 | { |
|
| 331 | $this->bg = ColourUtil::validateColour( |
|
| 332 | $this->terminal, |
|
| 333 | $bg, |
|
| 334 | $fallback |
|
| 335 | ); |
|
| 336 | $this->generateColoursSetCode(); |
|
| 337 | ||
| 338 | return $this; |
|
| 339 | } |
|
| 340 | ||
| 341 | public function getWidth() : int |
|
| 342 | { |
|