14 using namespace ftxui;
15 auto screen = ScreenInteractive::FitComponent();
20 auto renderer_focusable = Renderer([](
bool focused) {
22 return text(
"FOCUSABLE RENDERER()") | center | bold | border;
24 return text(
" Focusable renderer() ") | center | border;
29 auto renderer_non_focusable = Renderer([&] {
30 return text(
"~~~~~ Non Focusable renderer() ~~~~~");
34 auto button = Button(
"Wrapped quit button", screen.ExitLoopClosure());
35 auto renderer_wrap = Renderer(
button, [&] {
37 return button->Render() | bold | color(Color::Red);
44 screen.Loop(Container::Vertical({
46 renderer_non_focusable,