ftxui

C++ library for building interactive terminal user interfaces

brewmacoslinux
Try with needOr install directly
Source

About

C++ Functional Terminal User Interface

Examples

create interactive menus and buttons in terminal applications$ brew install ftxui && cat > example.cpp << 'EOF' #include "ftxui/dom/elements.hpp" #include "ftxui/screen/screen.hpp" using namespace ftxui; int main() { auto document = vbox({text("Hello Terminal UI")}); auto screen = Screen::Create(Dimension::Full(), Dimension::Full()); Render(screen, document); screen.Print(); } EOF
build responsive layouts that adapt to terminal window size$ brew install ftxui && #include <ftxui/dom/elements.hpp> for responsive flex/grid layouts
add colored text and styling to command line programs$ brew install ftxui && #use color() and bold() element decorators in ftxui
create form inputs and text fields for terminal applications$ brew install ftxui && #use Input element from ftxui/component/component.hpp
build interactive dashboards and monitoring tools for the terminal$ brew install ftxui && #combine gauge, progress_bar, and table elements from ftxui