The Wayback Machine - https://web.archive.org/web/20200723114237/https://github.com/ggerganov/imtui
Skip to content
master
Go to file
Code

Latest commit

'nodelay' symbol will be missing if tinfo is seperate from ncurses
since FindCurses only checks for 'cbreak' symbol to determine that.
this fixes that for now.

upstream merge request:
https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4892
f4d4b1e

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

imtui

Actions Status

ImTui is an immediate mode text-based user interface library. Supports 256 ANSI colors and mouse/keyboard input.

imtui-sample

wtf-tui-demo

imtui-screenshot-0

imtui-screenshot-1

Live demo in the browser

Eventhough this library is supposed to be used in the terminal, for convenience here is an Emscripten build to demonstrate what it looks like, by simulating a console in the browser:

Note: the demos work best with Chrome

Details

This library is 99.9% based on the popular Dear ImGui library. ImTui simply provides an ncurses interface in order to draw and interact with widgets in the terminal. The entire Dear ImGui interface is available out-of-the-box.

For basic usage of ImTui, check one of the available samples:

Note: the current implementation is experimental, so don't expect all things to work.

Building

ImTui depends only on libncurses

Linux and Mac:

git clone https://github.com/ggerganov/imtui --recursive
cd imtui
mkdir build && cd build
cmake ..
make

./bin/imtui-example-ncurses0

Emscripten:

git clone https://github.com/ggerganov/imtui --recursive
cd imtui
mkdir build && cd build
emconfigure cmake ..
make
You can’t perform that action at this time.