💻 C++ Functional Terminal User Interface. ❤️
Go to file
Robin Lindén 0a9a72cbaa
Workaround Windows.h breaking the Color::RGB function (#70)
wingdi.h (included via Windows.h) defines an RGB macro that breaks
things. If a user really wants that macro in the same file as FTXUI they
can move the Windows.h include to after the inclusion of FTXUI's
headers.
2021-02-09 14:18:29 +01:00
.github Add FUNDING.yml 2020-06-28 16:07:08 +02:00
.nxxm Add nxxm suport. 2020-12-21 15:36:04 +01:00
doc Improve color handling. (#49) 2020-10-16 22:31:24 +02:00
examples Fix parsing of keys that are prefix of others. (#58) 2020-10-25 01:57:56 +02:00
include/ftxui Workaround Windows.h breaking the Color::RGB function (#70) 2021-02-09 14:18:29 +01:00
src/ftxui Fixed infinite loop in Screen::ToString() for non-printable chars (#69) 2021-02-04 09:32:05 +01:00
tools Automatically fix style. 2020-09-07 11:25:50 +02:00
.clang-format Variou details: 2020-08-28 23:54:25 +02:00
.gitlab-ci.yml Add gitlab-ci.yml 2019-02-02 02:32:42 +01:00
.travis.yml Fix travis on Windows with gtests. 2020-04-17 00:59:05 +02:00
CMakeLists.txt Fix CMake when git is not found. (#64) 2020-11-22 13:23:01 +01:00
ftxui-config.cmake.in add dependency to Threads into generated cmake config (#52) 2020-10-16 22:07:30 +02:00
LICENSE Add LICENSE. Add take_any_args. 2019-01-06 16:14:19 +01:00
README.md Update README.md 2020-09-06 13:53:33 +02:00

FTXUI

travis issues license contributors

Functional Terminal (X) User interface

A simple C++ library for terminal based user interface.

Demo:

Demo image

Feature

  • Functional style. Inspired by [1] and React
  • Simple and elegant syntax (in my opinion).
  • Support for UTF8 and fullwidth chars (→ 测试)
  • No dependencies.
  • Cross platform (mostly). Linux (main target), Windows (experimental), Mac.

Example:

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

Documentation:

Project using FTXUI

Feel free to add your projects here:

Hosted on: