mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-24 14:51:09 +08:00
Pipeable decoration and the package_manager example.
- Pipeable decorator. - package_manager example.
This commit is contained in:
@@ -45,7 +45,7 @@ class MyComponent : ComponentVertical {
|
||||
};
|
||||
|
||||
int main(int argc, const char* argv[]) {
|
||||
ftxui::ScreenInteractive screen(60, 5);
|
||||
auto screen = ftxui::ScreenInteractive::TerminalOutput();
|
||||
MyComponent component(screen.delegate());
|
||||
component.on_enter = screen.ExitLoopClosure();
|
||||
screen.Loop();
|
||||
|
Reference in New Issue
Block a user