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:
ftxui
ftxui.component
ftxui.component.Animation
ftxui.component.CapturedMouse
ftxui.component.Component
ftxui.component.ComponentBase
ftxui.component.ComponentOptions
ftxui.component.Event
ftxui.component.Loop
ftxui.component.Mouse
ftxui.component.Receiver
ftxui.component.ScreenInteractive
ftxui.component.Task
ftxui.dom
ftxui.dom.Canvas
ftxui.dom.Deprecated
ftxui.dom.Direction
ftxui.dom.Elements
ftxui.dom.FlexboxConfig
ftxui.dom.LinearGradient
ftxui.dom.Node
ftxui.dom.Requirement
ftxui.dom.Selection
ftxui.dom.Table
ftxui.screen
ftxui.screen.Box
ftxui.screen.Color
ftxui.screen.ColorInfo
ftxui.screen.Deprecated
ftxui.screen.Image
ftxui.screen.Pixel
ftxui.screen.Screen
ftxui.screen.String
ftxui.screen.Terminal
ftxui.util
ftxui.util.AutoReset
ftxui.util.Ref