@@ 213-222 (lines=10) @@ | ||
210 | return $this; |
|
211 | } |
|
212 | ||
213 | public function setForegroundColour($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 | { |
@@ 299-309 (lines=11) @@ | ||
296 | return $this->fg; |
|
297 | } |
|
298 | ||
299 | public function setFg($fg, string $fallback = null) : self |
|
300 | { |
|
301 | $this->fg = ColourUtil::validateColour( |
|
302 | $this->terminal, |
|
303 | $fg, |
|
304 | $fallback |
|
305 | ); |
|
306 | $this->generateColoursSetCode(); |
|
307 | ||
308 | return $this; |
|
309 | } |
|
310 | ||
311 | public function getBg() |
|
312 | { |
|
@@ 316-326 (lines=11) @@ | ||
313 | return $this->bg; |
|
314 | } |
|
315 | ||
316 | public function setBg($bg, string $fallback = null) : self |
|
317 | { |
|
318 | $this->bg = ColourUtil::validateColour( |
|
319 | $this->terminal, |
|
320 | $bg, |
|
321 | $fallback |
|
322 | ); |
|
323 | $this->generateColoursSetCode(); |
|
324 | ||
325 | return $this; |
|
326 | } |
|
327 | ||
328 | public function getWidth() : int |
|
329 | { |