Skip to content
You are viewing documentation for v0.11. Switch to latest (main).

Installation ​

FTXUI requires a C++17 compiler (GCC ≥ 7, Clang ≥ 5, MSVC ≥ 2017) and has zero external dependencies.

Pick Your Setup ​

CategoryOptionsPage
Build SystemsCMake (FetchContent, find_package, submodule), Bazel (Bzlmod), Meson, Manual buildBuild Systems
Package Managersvcpkg, Conan, xmake, Nix FlakePackage Managers
Linux Distros & Single HeaderDebian/Ubuntu, Arch Linux, openSUSE, Amalgamated (ftxui.hpp / ftxui_all.hpp)Distros & Single Header

Quickest Start (CMake FetchContent) ​

cmake
include(FetchContent)
FetchContent_Declare(ftxui
  GIT_REPOSITORY https://github.com/ArthurSonzogni/FTXUI
  GIT_TAG v7.0.3
)
FetchContent_MakeAvailable(ftxui)

add_executable(my_app main.cpp)
target_link_libraries(my_app PRIVATE ftxui::component) # transitively links dom & screen

Library Targets ​

FTXUI is split into three layered targets (component → dom → screen), plus an umbrella target (ftxui::ftxui):

TargetPurpose
ftxui::screen2D Screen/Surface buffer, Cell, Color, Box, terminal I/O
ftxui::domDeclarative Element layout tree (hbox, vbox, border, table, canvas, …)
ftxui::componentInteractive widgets (Button, Input, Menu, Container, App, …)
ftxui::ftxuiUmbrella target & <ftxui/ftxui.hpp> header including all three

Next Steps ​