16class Blink :
public NodeDecorator {
20 void Render(Screen& screen)
override {
22 for (
int y = box_.y_min;
y <= box_.y_max; ++
y) {
23 for (
int x = box_.x_min; x <= box_.x_max; ++x) {
24 screen.CellAt(x,
y).blink =
true;
34 return std::make_shared<Blink>(std::move(child));
NodeDecorator(Element child)
Element blink(Element child)
The text drawn alternates in between visible and hidden.
The FTXUI ftxui:: namespace.
std::shared_ptr< Node > Element
void Render(Screen &screen, Node *node, Selection &selection)