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

ftxui::ScreenInteractive ​

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

Inherits from: ftxui::Screen

Examples: component/button, component/button_animated, component/button_in_frame, component/button_style, component/canvas_animated, component/checkbox, component/checkbox_in_frame, component/collapsible, component/composition, component/custom_loop, component/dropdown, component/flexbox_gallery (+33 more)

Summary ​

SymbolDescription
Private
FixedSize
Fullscreen
FitComponent
TerminalOutput
ActiveReturn the currently active screen, or null if none.
RequestAnimationFrameAdd a task to draw the screen one more time, until all the animations are done.
WithRestoredIODecorate a function. It executes the same way, but with the currently active screen terminal hooks temporarilly uninstalled during its execution.

Public Attributes ​

Private ​

cpp
friend Private;

Static Functions ​

FixedSize ​

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

Fullscreen ​

FitComponent ​

TerminalOutput ​

Active ​

cpp
static ScreenInteractive * Active();

Return the currently active screen, or null if none.

Public Member Functions ​

RequestAnimationFrame ​

Add a task to draw the screen one more time, until all the animations are done.

WithRestoredIO ​

cpp
Closure WithRestoredIO(Closure);

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.