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