|
FTXUI 6.1.9
C++ functional terminal UI.
|
FTXUI experimentally supports C++20 modules to reduce compilation times and improve code organization. Each header has a corresponding module.
Use the FTXUI_BUILD_MODULES option to build the FTXUI project itself to provide C++ 20 modules, for example with CMake and Ninja:
Then, in your own code you can consume the modules and code as normal:
Note, the ftxui convenience module which simply pulls together all the modules:
You can instead import only the module(s) you need if desired.
To properly find and link the modules with CMake, use target_link_libraries to get the right compiler, linker, etc. flags.
The modules directly reference the corresponding header, or a group of related headers to provide a more convenient interface. The following modules are available:
ftxuiftxui.componentftxui.component.Animationftxui.component.CapturedMouseftxui.component.Componentftxui.component.ComponentBaseftxui.component.ComponentOptionsftxui.component.Eventftxui.component.Loopftxui.component.Mouseftxui.component.Receiverftxui.component.ScreenInteractiveftxui.component.Taskftxui.domftxui.dom.Canvasftxui.dom.Deprecatedftxui.dom.Directionftxui.dom.Elementsftxui.dom.FlexboxConfigftxui.dom.LinearGradientftxui.dom.Nodeftxui.dom.Requirementftxui.dom.Selectionftxui.dom.Tableftxui.screenftxui.screen.Boxftxui.screen.Colorftxui.screen.ColorInfoftxui.screen.Deprecatedftxui.screen.Imageftxui.screen.Pixelftxui.screen.Screenftxui.screen.Stringftxui.screen.Terminalftxui.utilftxui.util.AutoResetftxui.util.Ref