|
FTXUI 7.0.3
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 community-maintained package for FTXUI can be found on Conan Center.
FTXUI also ships its own conanfile.py at the root of the repository, tested by CI on every commit. It isn't published to Conan Center itself, but it can be used to consume FTXUI directly from a local checkout via conan create ., and could serve as the basis for an official Conan Center recipe.
Once configured, run the following command to install FTXUI and its dependencies:
This will download and install ftxui/6.0.2 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: