@@ 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 | { |
@@ 256-266 (lines=11) @@ | ||
253 | return $this->fg; |
|
254 | } |
|
255 | ||
256 | public function setFg($fg, string $fallback = null) : self |
|
257 | { |
|
258 | $this->fg = ColourUtil::validateColour( |
|
259 | $this->terminal, |
|
260 | $fg, |
|
261 | $fallback |
|
262 | ); |
|
263 | $this->generateColoursSetCode(); |
|
264 | ||
265 | return $this; |
|
266 | } |
|
267 | ||
268 | public function getBg() |
|
269 | { |
|
@@ 273-283 (lines=11) @@ | ||
270 | return $this->bg; |
|
271 | } |
|
272 | ||
273 | public function setBg($bg, string $fallback = null) : self |
|
274 | { |
|
275 | $this->bg = ColourUtil::validateColour( |
|
276 | $this->terminal, |
|
277 | $bg, |
|
278 | $fallback |
|
279 | ); |
|
280 | $this->generateColoursSetCode(); |
|
281 | ||
282 | return $this; |
|
283 | } |
|
284 | ||
285 | public function getWidth() : int |
|
286 | { |