ImTui is a C++ library for creating immediate-mode user interfaces inside text terminals. It adapts the complete Dear ImGui interface through an ncurses-based terminal rendering layer. Applications can display familiar widgets while using 256 ANSI colors and keyboard or mouse input. The immediate-mode model lets developers describe the current interface on every frame without maintaining a complex retained widget hierarchy. Example projects include terminal clients for Hacker News and Slack and a configuration editor for the WTF dashboard. Browser demonstrations are compiled with Emscripten and simulate a console for easier experimentation. The library supports Linux and macOS, with partial Windows compatibility through MSYS2, MinGW, and PDCurses.
Features
- Immediate-mode terminal interfaces
- Complete Dear ImGui widget API
- 256 ANSI color rendering
- Keyboard and mouse interaction
- ncurses and PDCurses backends
- Emscripten browser demonstrations