| @@ 333-343 (lines=11) @@ | ||
| 330 | return $this->fg; |
|
| 331 | } |
|
| 332 | ||
| 333 | public function setFg(string $fg, string $fallback = null) : self |
|
| 334 | { |
|
| 335 | $this->fg = ColourUtil::validateColour( |
|
| 336 | $this->terminal, |
|
| 337 | $fg, |
|
| 338 | $fallback |
|
| 339 | ); |
|
| 340 | $this->generateColoursSetCode(); |
|
| 341 | ||
| 342 | return $this; |
|
| 343 | } |
|
| 344 | ||
| 345 | public function getBg() |
|
| 346 | { |
|
| @@ 237-246 (lines=10) @@ | ||
| 234 | return $this; |
|
| 235 | } |
|
| 236 | ||
| 237 | public function setForegroundColour(string $colour, string $fallback = null) : self |
|
| 238 | { |
|
| 239 | $this->style['fg'] = ColourUtil::validateColour( |
|
| 240 | $this->terminal, |
|
| 241 | $colour, |
|
| 242 | $fallback |
|
| 243 | ); |
|
| 244 | ||
| 245 | return $this; |
|
| 246 | } |
|
| 247 | ||
| 248 | public function setWidth(int $width) : self |
|
| 249 | { |
|