|
FTXUI 6.1.9
C++ functional terminal UI.
|
FTXUI experimentally supports C++20 modules to reduce compilation times and improve code organization. Each part of the library has a corresponding module, split into partitions per each header.
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.domftxui.screenftxui.util