mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-15 01:18:57 +08:00
Update examples for testing modules
This commit is contained in:
@@ -3,16 +3,25 @@
|
||||
// the LICENSE file.
|
||||
#include <stdlib.h> // for EXIT_SUCCESS
|
||||
#include <chrono> // for milliseconds
|
||||
|
||||
#ifndef FTXUI_BUILD_MODULES
|
||||
#include <ftxui/component/event.hpp> // for Event
|
||||
#include <ftxui/component/mouse.hpp> // for ftxui
|
||||
#include <ftxui/dom/elements.hpp> // for text, separator, Element, operator|, vbox, border
|
||||
#endif
|
||||
|
||||
#include <memory> // for allocator, shared_ptr
|
||||
#include <string> // for operator+, to_string
|
||||
#include <thread> // for sleep_for
|
||||
|
||||
#ifndef FTXUI_BUILD_MODULES
|
||||
#include "ftxui/component/component.hpp" // for CatchEvent, Renderer, operator|=
|
||||
#include "ftxui/component/loop.hpp" // for Loop
|
||||
#include "ftxui/component/screen_interactive.hpp" // for ScreenInteractive
|
||||
#else
|
||||
import ftxui.component;
|
||||
import ftxui.dom;
|
||||
#endif
|
||||
|
||||
int main() {
|
||||
using namespace ftxui;
|
||||
|
||||
Reference in New Issue
Block a user