dantleech, 6 months ago ... also thanks to @KennedyTedesco PHP-TUI supports a subset of the Symfony Console markup: Instead of: Line::fromSpans(Span::fromString('foo')->green(), Span::fromString('bar')->red()->onBlack()) (which is already an improvement on an even more verbose API) you can use: Line::parse('<fg=green>foo</><fg=red bg=black>bar</>');
... also thanks to @KennedyTedesco PHP-TUI supports a subset of the Symfony Console markup:
Instead of:
Line::fromSpans(Span::fromString('foo')->green(), Span::fromString('bar')->red()->onBlack())
(which is already an improvement on an even more verbose API)
you can use:
Line::parse('<fg=green>foo</><fg=red bg=black>bar</>');