|
FTXUI 7.1.0
C++ functional terminal UI.
|
FTXUI can be easily obtained and integrated into your project using the Conan package manager.
First, ensure that Conan is installed on your system. If not, you can install it via pip:
Conan often works in tandem with CMake, so you will need to have CMake installed as well. Once you have confirmed both Conan and CMake are installed, create a project directory, for example, ftxui-demo:
After ensuring your environment is set up correctly, create a Conan configuration file conanfile.txt. This file is used to declare your project's dependencies. The FTXUI package can be found on Conan Center.
Each FTXUI release automatically opens a pull request against conan-center-index to publish the new version (see the conan job in .github/workflows/publish.yaml).
Once configured, run the following command to install FTXUI and its dependencies:
This will download and install ftxui/7.0.3 along with all its dependencies from Conan's remote repositories.
After the installation completes, you can test it by creating a demo.cpp file in your project directory:
If the test is successful, you can then create a CMakeLists.txt file in the project directory:
If Conan Center is unreachable (e.g. restricted network), build the package from a local checkout using the conanfile.py at the root of the repository:
This puts ftxui/7.0.3 in your local Conan cache, and the steps above work unchanged. Alternatively, skip Conan entirely and use CMake directly.