{"id":13620182,"url":"https://github.com/ggerganov/imtui","last_synced_at":"2025-05-15T01:07:19.598Z","repository":{"id":39346581,"uuid":"226715516","full_name":"ggerganov/imtui","owner":"ggerganov","description":"ImTui: Immediate Mode Text-based User Interface C++ Library","archived":false,"fork":false,"pushed_at":"2024-05-04T06:54:07.000Z","size":431,"stargazers_count":3247,"open_issues_count":18,"forks_count":139,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-13T22:39:39.135Z","etag":null,"topics":["text","tui","ui","user-interface"],"latest_commit_sha":null,"homepage":"https://imtui.ggerganov.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ggerganov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-08T18:53:02.000Z","updated_at":"2025-04-12T20:34:02.000Z","dependencies_parsed_at":"2022-07-12T17:52:24.103Z","dependency_job_id":"2601ee39-45dc-432b-b770-960af0a67d78","html_url":"https://github.com/ggerganov/imtui","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggerganov%2Fimtui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggerganov%2Fimtui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggerganov%2Fimtui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggerganov%2Fimtui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggerganov","download_url":"https://codeload.github.com/ggerganov/imtui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254254041,"owners_count":22039792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["text","tui","ui","user-interface"],"created_at":"2024-08-01T21:00:53.165Z","updated_at":"2025-05-15T01:07:14.584Z","avatar_url":"https://github.com/ggerganov.png","language":"C++","readme":"imtui\n=====\n[![Actions Status](https://github.com/ggerganov/imtui/workflows/CI/badge.svg)](https://github.com/ggerganov/imtui/actions)\n[![ImTui v1.0.4 badge][changelog-badge]][changelog]\n[![Dear ImGui version badge][imgui-version-badge]](https://github.com/ocornut/imgui)\n\nImTui is an immediate mode text-based user interface library. Supports 256 ANSI colors and mouse/keyboard input.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://asciinema.org/a/JsUQsJyCchqlsQzm1P0CN4OJU\"\u003e\n    \u003cimg alt=\"ImTui basic\" src=\"https://media.giphy.com/media/AcKDr9ZyW3RWyNZRg1/giphy.gif\"\u003e\u003c/img\u003e  \n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ci\u003eA very basic ImTui example\u003c/i\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://slack.ggerganov.com\"\u003e\n    \u003cimg alt=\"Slack client\" src=\"https://user-images.githubusercontent.com/1991296/180660513-e9471200-11b1-4e79-bec0-e2d313dfd6a6.gif\"\u003e\u003c/img\u003e  \n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ci\u003eText-based client for \u003ca href=\"https://slack.com\"\u003eSlack\u003c/a\u003e\u003c/i\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://imtui.ggerganov.com\"\u003e\n    \u003cimg alt=\"Tables\" src=\"https://user-images.githubusercontent.com/1991296/140774086-285cb34f-0851-47b0-82e5-2e8a5bf174ac.gif\"\u003e\u003c/img\u003e  \n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ci\u003eTables example\u003c/i\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ggerganov/hnterm\"\u003e\n    \u003cimg alt=\"HNTerm\" src=\"https://user-images.githubusercontent.com/1991296/131371951-3af42be8-657e-4542-a46a-0370cfc431d8.gif\"\u003e\u003c/img\u003e  \n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ci\u003eText-based client for \u003ca href=\"https://news.ycombinator.com/news\"\u003eHacker News\u003c/a\u003e\u003c/i\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://asciinema.org/a/VUKWZM70PxRCHueyPFXy9smU8\"\u003e\n    \u003cimg alt=\"WTF util\" src=\"https://asciinema.org/a/VUKWZM70PxRCHueyPFXy9smU8.svg\"\u003e\u003c/img\u003e  \n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003ci\u003eText-based configuration editor for the \u003ca href=\"https://wtfutil.com/\"\u003eWTF Dashboard\u003c/a\u003e\u003c/i\u003e\n\u003c/p\u003e\n\n## Live demo in the browser\n\nEven though this library is supposed to be used in the terminal, for convenience here is an [Emscripten](https://emscripten.org) build to demonstrate what it looks like, by simulating a console in the browser:\n\n- Demo 0: [imtui.ggerganov.com](https://imtui.ggerganov.com/)\n- Demo 1: [hnterm.ggerganov.com](https://hnterm.ggerganov.com/)\n- Demo 2: [wtf-tui.ggerganov.com](https://wtf-tui.ggerganov.com/)\n- Demo 3: [slack.ggerganov.com](https://slack.ggerganov.com/)\n\nNote: the demos work best with **Chrome**\n\n## Details\n\nThis library is 99.9% based on the popular [Dear ImGui](https://github.com/ocornut/imgui) library. ImTui simply provides an [ncurses](https://en.wikipedia.org/wiki/Ncurses) interface in order to draw and interact with widgets in the terminal. The entire Dear ImGui interface is available out-of-the-box.\n\nFor basic usage of ImTui, check one of the available samples:\n\n- [example-ncurses0](https://github.com/ggerganov/imtui/blob/master/examples/ncurses0/main.cpp)\n- [example-emscripten0](https://github.com/ggerganov/imtui/blob/master/examples/emscripten0/main.cpp)\n- [hnterm](https://github.com/ggerganov/hnterm) - a simple tool to browse Hacker News in the terminal\n- [wtf-tui](https://github.com/ggerganov/wtf-tui) - text-based UI for configuring the WTF terminal dashboard\n- [slack](https://github.com/ggerganov/imtui/blob/master/examples/slack) - text-based mock UI for Slack\n\n## Building\n\nImTui depends only on `libncurses`\n\n###  Linux and Mac:\n\n```bash\ngit clone https://github.com/ggerganov/imtui --recursive\ncd imtui\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\n\n./bin/imtui-example-ncurses0\n```\n\n### Windows:\n\nPartial Windows support is currently available using MSYS2 + MinGW + PDCurses:\n\n```\n# install required packages in an MSYS2 terminal:\npacman -S git cmake make mingw-w64-x86_64-dlfcn mingw-w64-x86_64-gcc mingw-w64-x86_64-pdcurses mingw-w64-x86_64-curl\n\n# build\ngit clone https://github.com/ggerganov/imtui --recursive\ncd imtui\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\n\n./bin/hnterm.exe\n```\n![](https://user-images.githubusercontent.com/1991296/103576542-fa5aef80-4edb-11eb-8340-4bd60a1f9fba.gif)\nFor more information, checkout the following discussion: [#19](https://github.com/ggerganov/imtui/discussions/19)\n\n### Emscripten:\n\n```bash\ngit clone https://github.com/ggerganov/imtui --recursive\ncd imtui\nmkdir build \u0026\u0026 cd build\nemconfigure cmake ..\nmake\n```\n\n[changelog]: ./CHANGELOG.md\n[changelog-badge]: https://img.shields.io/badge/changelog-ImTui%20v1.0.4-dummy\n[imgui-version-badge]: https://img.shields.io/badge/Powered%20by%20Dear%20ImGui-v1.81-blue.svg\n","funding_links":[],"categories":["CLI","C++","By Industry","Table of Contents","By Language","Graphics"],"sub_categories":["Tools \u0026 Utilities","C++"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggerganov%2Fimtui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggerganov%2Fimtui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggerganov%2Fimtui/lists"}