imtui
awesome-tuis
imtui | awesome-tuis | |
---|---|---|
13 | 25 | |
2,835 | 6,409 | |
- | - | |
1.0 | 8.5 | |
6 days ago | 14 days ago | |
C++ | ||
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
imtui
-
Textual Web: TUIs for the Web
Check this out - https://github.com/ggerganov/imtui - it's imgui for tui, and I guess one can compile it as wasm and run there!
- Is a graphics library necessary for a "game" that just uses ascii characters similar to dwarf fortress? If so, suggestions?
- Show HN: Text-based UI (TUI) for a Slack client (mock)
-
Alternative to ncurses for modern C++ (TUI)
Curses is the de facto TUI base, but there is no de facto standard C++ wrapper around curses. Google has FlatUI, FTXUI and Notcurses are popular, imtui is directly inspired by Dear ImGui. The list goes on and on, there are plenty of popular TUI libraries that all build upon Curses.
-
14 great tips to make amazing CLI applications
This can be as easy as wrapping a simple stdin/stdout loop with rlwrap, all the way to using full featured TUI libraries like bubbletea (golang), textual (python) or imtui (c++).
- ImTui: Immediate Mode Text-Based User Interface C++ Library
-
How do I draw a triangle of any shape, form or size in the console?
Second case is trickier. You probably want to check imtui or similar APIs.
-
Libraries
imtui
-
Is there a de-facto standard of C++ TUI library?
I wouldn't call it standard, but https://github.com/ggerganov/imtui is pretty cool. It puts https://github.com/ocornut/imgui over ncurses.
awesome-tuis
- List of projects that provide terminal user interfaces
-
Contour: Modern and Fast Terminal Emulator
> Editing multiline inputs is awful.
Outside of "line at a time" i/o (a rarely used mode where an entire line is edited locally and then sent to the host), most of what users see is as interactive is controlled by the program you are interacting with. The terminal just takes commands from the host and does what it is told. BTW, line at a time mode isn't used that much. The only thing I use that uses line at a time mode is telenet in LINEMODE.
> Navigating history is so-so
Yes, that is because the program you are likely interacting with where history is relevant implements it's own repl or command line (i.e. bash, zsh, python, etc...) and it is responsible for it's own history and may implement it completely differently than say, bash or zsh.
> Why are terminals always stuck in the 70s? Can I get a modern terminal?
We do have a modern terminal: the web browser... and it's pretty nice.
There have been a ton of tries at more modern terminals, but ultimately, they end up really being limited by the software running in the terminal session. In the 90s we had a ton of commercial terminal emulators that would allow you to create full guis, complete with dialogs and forms. In the 00's there were a few tries at terminals that would allow html output and embedding of html forms for input (can't remember the names of them). I suppose there's also the whole X11 thing... which is so good enough that it's really hard to kill.
Let's get back to character mode:
A lot of interactive terminal software is built using different libraries - so sometimes you get a terminal gui based on ncurses, terminal.gui, or something else... here's a list: https://github.com/rothgar/awesome-tuis#libraries. Most of these libraries try to use most of the features in your terminal emulator, but often, just use stuff that is in everything.
For command line programs (i.e. just type a command), a lot of the experience is dictated by the parser used by the tool and whatever the underlying operating system has for passing arguments. Some shells and terminal emulators (like iTerm2 on mac) try to smooth this out, but again, there's a lot of variety in command line parsers.
Probably the biggest modern improvement in the shell world was gettext and various command-line completion libraries which allows command parameter completion if the developer supports it or uses a parser that supports completion. But none of this is the terminal itself doing the work.
-
DIY nas,suggestions for how to have an OLED screen like qnap showing space available, current IP,etc
Haven't done much in grafana but probably use that to constantly output to a small display. Depending on if you want to install a display server... Seems like there are lots of options, maybe grafterm is what you're looking for: https://github.com/rothgar/awesome-tuis
-
What can you do in a terminal?
Check out this list of great TUI projects if you really want to see what terminal only is capable of.
-
I wrote a TUI snake game in BASH v5.1+
This looks really cool! Would you mind PRing it to my awesome TUIs list? https://github.com/rothgar/awesome-tuis
-
Awesome CLI & TUI Applications Directory site
See also: https://github.com/rothgar/awesome-tuis
-
Are there any TUI apps you recommend outside of ncdu / nnn / htop / vim / bat / fd / tig / duf?
Here's a good list
-
What's the most beautifully designed TUI-app you've used?
Have a browse at the awesome-tui list and in the reddit search bar: this question is asked quite often and there are already plenty of answers :)
-
[Possibly OT] Is there a list of command-line versions of any Unix/Linux GUI applications?
https://github.com/toolleeo/cli-apps and https://github.com/rothgar/awesome-tuis? Though it doesn't mention a specific GUI apps (eg, Lynx is under either Web Browser or Web on those lists), and it's just lists, no actual comparison or review etc. I usually found AlternativeTo to be somewhat decent start to see what features and alternatives I can expect across platform.
-
arrows in C
For instance, for terminal input you may want to have a look at https://github.com/rothgar/awesome-tuis, where you will find many terminal user interface libraries (and other examples). I would suggest imtui and fxtui from the libraries section. You may also want to use classic ncurses, as others have suggested.
What are some alternatives?
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
notcurses - blingful character graphics/TUI library. definitely not curses.
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
TerminusBrowser - CLI Reddit, Hacker News, 4chan, and lainchan browser
sfm - simple file manager
libyui - Libyui is a widget abstraction library providing Qt, GTK and ncurses frontends. Originally it was developed for YaST but it can be used in any independent project.
spectre.console - A .NET library that makes it easier to create beautiful console applications.
typer - Typer, build great CLIs. Easy to code. Based on Python type hints.
btop4win - btop++ for windows
meli - 🐝 experimental terminal mail client, mirror of https://git.meli.delivery/meli/meli.git https://crates.io/crates/meli
hnterm - :page_with_curl: Hacker News in the terminal