17 text(
"> " + label +
" "),
18 focusCursor(
text(
" ")),
21 return text(
" " + label +
" ");
27 screen.Loop(Container::Vertical({
29 Instance(
"focusCursorBlock", focusCursorBlock),
30 Instance(
"focusCursorBlockBlinking", focusCursorBlockBlinking),
31 Instance(
"focusCursorBar", focusCursorBar),
32 Instance(
"focusCursorBarBlinking", focusCursorBarBlinking),
33 Instance(
"focusCursorUnderline", focusCursorUnderline),
34 Instance(
"focusCursorUnderlineBlinking", focusCursorUnderlineBlinking),
Component Instance(std::string label, Decorator focusCursor)
static ScreenInteractive Fullscreen()
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Element text(std::wstring text)
Display a piece of unicode text.
The FTXUI ftxui:: namespace.
std::function< Element(Element)> Decorator
Element hbox(Elements)
A container displaying elements horizontally one by one.
std::shared_ptr< ComponentBase > Component