GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Categories
  • Newsletter
  • Submit
  • Login
  • Awesome C++
  • GUI

This view

  • Original page
  • New address

GeezerVison is showing cpp.libhunt.com — FTXUI Alternatives - C++ GUI | LibHunt

  • Subscribe
  • Submit
  • Categories
  • About
  • Login

FTXUI

Features: - Functional style. Inspired by [1] and React - Simple and elegant syntax (in my opinion). - Support for UTF8 and fullwidth chars (→ 测试). - No dependencies. - Cross platform. Linux/mac (main target), Windows (experimental thanks to contributors), - WebAssembly. - Keyboard & mouse navigation. Operating systems: - linux emscripten - linux gcc - linux clang - windows msvc - mac clang

ArthurSonzogni logo
arthursonzogni.github.io    Source Code    Docs    Changelog
Suggest Changes
Take the C++ Developer Survey - About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email. Take the survey »
Popularity
8.8
Growing
Activity
9.1
Growing
Stars 10,917
Watchers 87
Forks 630
Last Commit 6 days ago

Description

Features: - Functional style. Inspired by [1] and React - Simple and elegant syntax (in my opinion). - Support for UTF8 and fullwidth chars (→ 测试). - No dependencies. - Cross platform. Linux/mac (main target), Windows (experimental thanks to contributors), - WebAssembly. - Keyboard & mouse navigation. Operating systems: - linux emscripten - linux gcc - linux clang - windows msvc - mac clang

Programming language: C++
License: MIT License
Tags: GUI     Header Only     Cross-platform    
Latest version: v7.0.1

FTXUI alternatives and similar libraries

Based on the "GUI" category.
Alternatively, view FTXUI alternatives based on common mentions on social networks and blogs.

  • imgui

    9.9 9.7 L1 FTXUI VS imgui
    Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
    ocornut logo
  • Modern C++ Programming

    9.3 6.6 FTXUI VS Modern C++ Programming
    Modern C++ Programming Course (C++03/11/14/17/20/23/26)
    federico-busato logo
  • SaaSHub - Software Alternatives and Reviews

    SaaSHub helps you find the best software and product alternatives
    Promo www.saashub.com
    SaaSHub Logo
  • webview

    9.2 4.7 FTXUI VS webview
    Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).
    webview logo
  • xmake

    9.0 9.8 FTXUI VS xmake
    🔥 A cross-platform build utility based on Lua
    xmake-io logo
  • nuklear

    8.9 8.2 FTXUI VS nuklear
    A single-header ANSI C immediate mode cross-platform GUI library
    Immediate-Mode-UI logo
  • libui

    8.9 0.0 FTXUI VS libui
    Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.
    andlabs logo
  • wxWidgets

    8.8 9.9 L1 FTXUI VS wxWidgets
    Cross-Platform C++ GUI Library
    wxWidgets logo
  • Stacer

    8.7 3.4 FTXUI VS Stacer
    Linux System Optimizer and Monitoring - https://oguzhaninan.github.io/Stacer-Web
    oguzhaninan logo
  • Duilib

    8.7 0.0 FTXUI VS Duilib
    GUI
    duilib logo
  • NanoGUI

    8.0 0.0 FTXUI VS NanoGUI
    Minimalistic GUI library for OpenGL
    wjakob logo
  • RmlUi

    7.8 8.7 FTXUI VS RmlUi
    RmlUi - The HTML/CSS User Interface library evolved
    mikke89 logo
  • Elements C++ GUI library

    7.5 9.4 FTXUI VS Elements C++ GUI library
    Elements C++ GUI library
    cycfi logo
  • SixtyFPS

    7.3 9.9 FTXUI VS SixtyFPS
    DISCONTINUED. Slint is a toolkit to efficiently develop fluid graphical user interfaces for any display: embedded devices and desktop applications. We support multiple programming languages, such as Rust, C++ or JavaScript. [Moved to: https://github.com/slint-ui/slint]
    sixtyfpsui logo
  • Yue

    7.3 6.6 FTXUI VS Yue
    A library for creating native cross-platform GUI apps
    yue logo
  • GacUI

    7.2 9.9 L1 FTXUI VS GacUI
    Native C++ UI library, cross-platform, MVVM and data binding, XML description, multi-language, core/renderer cross-process separation, etc
    vczh-libraries logo
  • Turbo Vision

    7.2 7.6 FTXUI VS Turbo Vision
    A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.
    magiblot logo
  • nana

    7.1 0.0 L1 FTXUI VS nana
    a modern C++ GUI library
    cnjinhao logo
  • Sciter

    7.1 0.0 FTXUI VS Sciter
    Sciter: the Embeddable HTML/CSS/JS engine for modern UI development
    sciter-sdk logo
  • FLTK

    6.9 9.6 FTXUI VS FLTK
    FLTK - Fast Light Tool Kit - https://github.com/fltk/fltk - cross platform GUI development
    fltk logo
  • GTK+

    6.6 9.9 L3 FTXUI VS GTK+
    Read-only mirror of https://gitlab.gnome.org/GNOME/gtk
    GNOME logo
  • libRocket

    5.9 0.0 L2 FTXUI VS libRocket
    libRocket - The HTML/CSS User Interface library
    libRocket logo
  • copperspice

    5.7 8.5 FTXUI VS copperspice
    Set of cross platform C++ libraries (Core, Gui, Network, Multimedia, SQL, Vulkan, etc)
    copperspice logo
  • PDCurses

    5.7 2.4 L3 FTXUI VS PDCurses
    A curses library for environments that don't fit the termcap/terminfo model.
    wmcbrine logo
  • SOUI

    5.5 2.1 FTXUI VS SOUI
    SOUI是目前为数不多的轻量级可快速开发window桌面程序开源DirectUI库.其前身为Duiengine,更早期则是源自于金山卫士开源版本UI库Bkwin.经过多年持续更新方得此库
    SOUI2 logo
  • MyGUI

    5.4 9.7 L2 FTXUI VS MyGUI
    Fast, flexible and simple GUI.
    MyGUI logo
  • xtd

    5.3 9.9 FTXUI VS xtd
    Free open-source modern C++20/23 framework to create console (CLI), forms (GUI like WinForms) and unit test (xUnit) applications and libraries on Windows, macOS, Linux, iOS, Android, FreeBSD, Haiku, and SerenityOS.
    gammasoft71 logo
  • FINAL CUT

    5.3 8.5 FTXUI VS FINAL CUT
    A Modern C++ Text-Based Widget Toolkit (TUI)
    gansm logo
  • cuda-api-wrappers

    4.9 4.7 FTXUI VS cuda-api-wrappers
    Thin C++-flavored header-only wrappers for core CUDA APIs: Runtime, Driver, NVRTC, NVTX.
    eyalroz logo
  • MeshLib

    4.9 9.9 FTXUI VS MeshLib
    3D geometry processing SDK: fast mesh boolean, mesh repair, decimation, remeshing, offset, point cloud triangulation and ICP registration. C++ with Python, C#, C and JavaScript bindings.
    MeshInspector logo
  • saucer

    4.9 7.7 FTXUI VS saucer
    🛸 A modern, cross-platform C++ webview library
    saucer logo
  • CEGUI

    4.7 - FTXUI VS CEGUI
    Flexible, cross-platform GUI library.
  • neoGFX

    4.1 9.6 FTXUI VS neoGFX
    Cross-platform GPU-oriented C++ application/game framework
    i42output logo
  • CTPG

    3.8 3.9 FTXUI VS CTPG
    Compile Time Parser Generator is a C++ single header library which takes a language description as a C++ code and turns it into a LR1 table parser with a deterministic finite automaton lexical analyzer, all in compile time.
    peter-winter logo
  • Brisk

    3.5 8.3 FTXUI VS Brisk
    Cross-platform C++20 GUI framework featuring MVVM architecture, reactive capabilities, and scalable, accelerated GPU rendering.
    brisklib logo
  • Refureku

    3.1 0.0 FTXUI VS Refureku
    Cross-platform C++17 Runtime Reflection Library
    jsoysouvanh logo
  • eventbus

    3.1 4.7 FTXUI VS eventbus
    A simple, header only event bus library written in modern C++17.
    ptsouchlos logo
  • gtkmm

    3.0 7.8 FTXUI VS gtkmm
    Read-only mirror of https://gitlab.gnome.org/GNOME/gtkmm
    GNOME logo
  • Vaca

    2.6 3.8 FTXUI VS Vaca
    C++ Win32 wrapper to develop GUI apps
    dacap logo
  • ncurses

    2.6 7.6 FTXUI VS ncurses
    snapshots of ncurses - see https://invisible-island.net/personal/git-exports.html (no pull requests are accepted)
    ThomasDickey logo
  • newt

    2.1 3.1 FTXUI VS newt
    Mirror of https://gitlab.com/newt-ui/newt
    mlichvar logo
  • Clip Library

    2.0 6.3 L3 FTXUI VS Clip Library
    Cross-platform C++ library to copy/paste clipboard content
    aseprite logo
  • sling

    1.8 3.8 FTXUI VS sling
    Lightweight C++ Signals and Slots implementation
    adrg logo
  • Ultra App Kit

    1.5 9.6 FTXUI VS Ultra App Kit
    Documentation contents for Leadwerks Game Engine 5
    Leadwerks logo
  • NeoQCP

    1.5 9.7 FTXUI VS NeoQCP
    A modernized fork of QCustomPlot: Qt6-only, QRhi rendering, Meson build, zero-copy plotting
    SciQLop logo
  • fox-toolkit

    1.4 0.0 FTXUI VS fox-toolkit
    DISCONTINUED. Unofficial Zenotech specific mirror of fox-toolkit; please refer to upstream site for latest version
    zenotech logo
  • QCustomPlot

    1.4 - FTXUI VS QCustomPlot
    Qt plotting widget without further dependencies. [GPLv3]
  • genetic

    1.4 1.9 FTXUI VS genetic
    A performant and flexible genetic algorithm implemented in C++20/23.
    ptsouchlos logo
  • Omnirefl

    1.3 8.7 FTXUI VS Omnirefl
    Seamless C++ reflection for a focused feature set, without macros or UB (before C++26).
    sergio-eld logo
  • static_string

    1.3 2.7 FTXUI VS static_string
    Experimental compile-time string manipulation C++17 library
    ChristianPanov logo
  • MiniOAuth2

    1.3 5.9 FTXUI VS MiniOAuth2
    A lightweight, header-only C++20 library for OAuth 2.0 Authorization Code Flow with PKCE . built for Crow, usable anywhere.
    Mhr1375 logo

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

Do you think we are missing an alternative of FTXUI or a related project?

Add another 'GUI' Library

Popular Comparisons

  • FTXUI
    vs
    ncurses
  • FTXUI
    vs
    Turbo Vision
  • FTXUI
    vs
    imgui
  • FTXUI
    vs
    Elements C++ GUI library
  • FTXUI
    vs
    FLTK

README

Documentation · Report a Bug · Examples . Request Feature · Send a Pull Request

FTXUI

Functional Terminal (X) User interface

A simple C++ library for terminal based user interfaces!

Feature

  • Functional style. Inspired by [1] and React
  • Simple and elegant syntax (in my opinion)
  • Keyboard & mouse navigation.
  • Support for UTF8 and fullwidth chars (→ 测试)
  • Support for animations. Demo 1, Demo 2
  • Support for drawing. Demo
  • No dependencies
  • Cross platform: Linux/MacOS (main target), WebAssembly, Windows (Thanks to contributors!).
  • Learn by examples, and tutorials
  • Multiple packages: CMake FetchContent (preferred), vcpkg, pkgbuild, conan.
  • Good practises: documentation, tests, fuzzers, performance tests, automated CI, automated packaging, etc...

Documentation

  • Starter example project
  • Documentation
  • Examples (WebAssembly)
  • Build using CMake

Operating systems

This is expected to be cross platform. This supports / tests:

  • WebAssembly
  • Linux
  • MacOS
  • Windows

Example

  vbox({
    hbox({
      text("left") | border,
      text("middle") | border | flex,
      text("right") | border,
    }),
    gauge(0.5) | border,
  });
┌────┐┌───────────────────────────────────────────────────────────────┐┌─────┐
│left││middle                                                         ││right│
└────┘└───────────────────────────────────────────────────────────────┘└─────┘
┌────────────────────────────────────────────────────────────────────────────┐
│██████████████████████████████████████                                      │
└────────────────────────────────────────────────────────────────────────────┘

Short gallery

DOM

This module defines a hierarchical set of Element. An element manages layout and can be responsive to the terminal dimensions.

They are declared in

Layout

Element can be arranged together:

  • horizontally with hbox
  • vertically with vbox
  • inside a grid with gridbox
  • wrap along one direction using the flexbox.

Element can become flexible using the the flex decorator.

Example using hbox, vbox and filler.

image

Example using gridbox:

image

Example using flexbox:

image

See also this demo.

Style

An element can be decorated using the functions:

  • bold
  • dim
  • inverted
  • underlined
  • blink
  • color
  • bgcolor

Example

image

FTXUI supports the pipe operator. It means: decorator1(decorator2(element)) and element | decorator1 | decorator2 can be used.

Colors

FTXUI support every color palette:

Color gallery: image

Border and separator

Use decorator border and element separator() to subdivide your UI:

auto document = vbox({
    text("top"),
    separator(),
    text("bottom"),
}) | border;

Demo:

image

Text and paragraph

A simple piece of text is represented using text("content").

To support text wrapping following spaces the following functions are provided:

Element paragraph(std::string text);
Element paragraphAlignLeft(std::string text);
Element paragraphAlignRight(std::string text);
Element paragraphAlignCenter(std::string text);
Element paragraphAlignJustify(std::string text);

Paragraph example

ezgif com-gif-maker (4)

Table

A class to easily style a table of data.

Example:

image

Canvas

Drawing can be made on a Canvas, using braille, block, or simple characters:

Simple example:

image

Complex examples:

ezgif com-gif-maker (3)

Component

The ftxui/component is needed when you want to produce dynamic UI, reactive to the user's input. It defines a set of ftxui::Component. A component reacts to Events (keyboard, mouse, resize, ...) and Render Element (see previous section).

Prebuilt components are declared in

Gallery

Gallery of multiple components. (demo)

image

Radiobox

Example:

image

Checkbox

Example:

image

Input

Example:

image

Toggle

Example:

image

Slider

Example:

image

Menu

Example:

image

ResizableSplit

Example:

ezgif com-gif-maker

Dropdown

Example:

youtube-video-gif (3)

Tab

Vertical:

ezgif com-gif-maker (1)

Horizontal:

ezgif com-gif-maker (2)

Project using FTXUI

Feel free to add your projects here:

  • json-tui
  • git-tui
  • rgb-tui
  • chrome-log-beautifier
  • x86-64 CPU Architecture Simulation
  • ltuiny
  • i3-termdialogs
  • Just-Fast
  • simpPRU
  • Pigeon ROS TUI
  • hastur
  • CryptoCalculator
  • todoman
  • TimeAccumulator
  • vantage
  • tabdeeli
  • tiles
  • cachyos-cli-installer
  • beagle-config
  • turing_cmd
  • StartUp
  • eCAL monitor

cpp-best-practices/game_jam

Several games using the FTXUI have been made during the Game Jam:

  • TermBreaker [Play web version]
  • Minesweeper Marathon [Play web version]
  • Grand Rounds
  • LightsRound
  • DanteO
  • Sumo
  • Drag Me aROUND
  • DisarmSelfDestruct
  • TheWorld
  • smoothlife
  • Consu

External package

It is highly recommended to use CMake FetchContent to depend on FTXUI. This way you can specify which commit you would like to depend on.

include(FetchContent)

FetchContent_Declare(ftxui
  GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
  GIT_TAG v3.0.0
)

FetchContent_GetProperties(ftxui)
if(NOT ftxui_POPULATED)
  FetchContent_Populate(ftxui)
  add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()

If you don't, the following packages have been created:

  • vcpkg
  • Arch Linux PKGBUILD.
  • conan.io

Contributors


*Note that all licence references and agreements mentioned in the FTXUI README section above are relevant to that project's source code only.

Do not miss the trending, libraries, news and articles with our weekly report.

Awesome C++ is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
Spin The Wheel Of Names for a cryptographically secure random name picker.
Schedule a when to meet poll.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.