| @@ 212-221 (lines=10) @@ | ||
| 209 | return $this; |
|
| 210 | } |
|
| 211 | ||
| 212 | public function setForegroundColour(string $colour, string $fallback = null) : self |
|
| 213 | { |
|
| 214 | $this->style['fg'] = ColourUtil::validateColour( |
|
| 215 | $this->terminal, |
|
| 216 | $colour, |
|
| 217 | $fallback |
|
| 218 | ); |
|
| 219 | ||
| 220 | return $this; |
|
| 221 | } |
|
| 222 | ||
| 223 | public function setWidth(int $width) : self |
|
| 224 | { |
|
| @@ 325-335 (lines=11) @@ | ||
| 322 | return $this->fg; |
|
| 323 | } |
|
| 324 | ||
| 325 | public function setFg(string $fg, string $fallback = null) : self |
|
| 326 | { |
|
| 327 | $this->fg = ColourUtil::validateColour( |
|
| 328 | $this->terminal, |
|
| 329 | $fg, |
|
| 330 | $fallback |
|
| 331 | ); |
|
| 332 | $this->generateColoursSetCode(); |
|
| 333 | ||
| 334 | return $this; |
|
| 335 | } |
|
| 336 | ||
| 337 | public function getBg() |
|
| 338 | { |
|