ftxui::ScreenInteractive
#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/dropdown_custom (+38 more)
Summary
| Symbol | Description |
|---|---|
Private | |
FixedSize | |
FitComponent | |
TerminalOutput | |
Active | Return the currently active screen, or null if none. |
RequestAnimationFrame | Add a task to draw the screen one more time, until all the animations are done. |
WithRestoredIO | Decorate a function. It executes the same way, but with the currently active screen terminal hooks temporarilly uninstalled during its execution. |
ForceHandleCtrlC | Force FTXUI to handle or not handle Ctrl-C, even if the component catches the Event::CtrlC. |
ForceHandleCtrlZ | Force FTXUI to handle or not handle Ctrl-Z, even if the component catches the Event::CtrlZ. |
GetSelection | Returns the content of the current selection. |
SelectionChange |
Public Attributes
Private
friend Private;Static Functions
FixedSize
static ScreenInteractive FixedSize(int dimx, int dimy);FitComponent
static ScreenInteractive FitComponent();TerminalOutput
static ScreenInteractive TerminalOutput();Active
static ScreenInteractive * Active();Return the currently active screen, or null if none.
Public Member Functions
RequestAnimationFrame
void RequestAnimationFrame();Add a task to draw the screen one more time, until all the animations are done.
WithRestoredIO
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.
ForceHandleCtrlC
void ForceHandleCtrlC(bool force);Force FTXUI to handle or not handle Ctrl-C, even if the component catches the Event::CtrlC.
ForceHandleCtrlZ
void ForceHandleCtrlZ(bool force);Force FTXUI to handle or not handle Ctrl-Z, even if the component catches the Event::CtrlZ.
GetSelection
std::string GetSelection();Returns the content of the current selection.
SelectionChange
void SelectionChange(std::function< void()> callback);