Skip to content
You are viewing documentation for v2.0.0. Switch to latest (main).

ftxui::ScreenInteractive ​

cpp
#include <ftxui/component/screen_interactive.hpp>

Inherits from: ftxui::Screen

Examples: component/button, component/canvas_animated, component/checkbox, component/checkbox_in_frame, component/collapsible, component/composition, component/dropdown, component/flexbox_gallery, component/focus, component/gallery, component/homescreen, component/input (+20 more)

Summary ​

SymbolDescription
Callback
FixedSize
Fullscreen
FitComponent
TerminalOutput
Loop
ExitLoopClosure
PostEvent
CaptureMouse
WithRestoredIODecorate a function. It executes the same way, but with the currently active screen terminal hooks temporarilly uninstalled during its execution.

Public Types ​

Callback ​

cpp
using Callback = std::function< void()>;

Static Functions ​

FixedSize ​

cpp
static ScreenInteractive FixedSize(int dimx, int dimy);

Fullscreen ​

FitComponent ​

TerminalOutput ​

Public Member Functions ​

Loop ​

cpp
void Loop(Component);

ExitLoopClosure ​

PostEvent ​

cpp
void PostEvent(Event event);

CaptureMouse ​

cpp
CapturedMouse CaptureMouse();

WithRestoredIO ​

Decorate a function. It executes the same way, but with the currently active screen terminal hooks temporarilly uninstalled during its execution.

Parameters:

  • fn: The function to decorate.