r/C_Programming • u/Taewyth2 • 12d ago
Question What are some neat TUI libraries ?
So I'm trying to do a TUI application for fun, and I wanted to use C for a change (I love the language but almost only used it for embedded devices/drivers, stuff like that so no UI work)
The project it would be used on is a TUI solo TTRPG toolset (dice roller, note editor, etc.)
I know about ncurses obviously, and notcurses as well, but I was wondering if there was any other library you could propose so that I had a look before settling on something.
I'm open to all proposition, it's mostly curiosity and just for a small hobby project, thanks in advance!
Edit: thanks for the answers, looking at everything I think i'll give termbox2 a go and see how it goes!
6
u/rainboww_J 12d ago
I’ve seen a tui variant of imgui pass by once which looked fun. Think it was called imtui. It had movable panels and all
6
u/DescriptionOptimal15 12d ago
Termbox / termbox2 for sure
6
u/JoK3rOp 11d ago
Notcurses is the most powerful TUI library out there. It has everythingm from multimedia to borders. Imo it's more powerfull then ratatui and bubble tea.
4
u/Interesting_Debate57 11d ago
I'm all about ncurses. Once you bite the bullet, it's all smooth sailing. It works flawlessly, although you're going to need to study special cases, such as the terminal type.
2
u/lmemsm 12d ago
For alternatives to ncurses with a similar API, there are pdcurses and netbsd-curses. Some libraries that work with curses: https://invisible-island.net/cdk/cdk.html https://clifford.at/stfl There are various ports of TurboVision ( one option https://tvision.sourceforge.net/ ). There are various versions of D-Flat which was from a series of articles in Dr. Dobb's magazine.
2
u/pigeon768 12d ago
s-lang is interesting. It has a standalone program called slsh that allows you to script a TUI program. So if you write the base program in s-lang as a TUI, it's trivial for your users to script a cli version.
0
u/alkavan 12d ago
ncurses
1
u/kansetsupanikku 10d ago
libc is great! before you add to complexity, temios.h might surprise you with vast capabilities
1
u/gnix0 12d ago
Been using ncurses to write my project, it's good, I'm liking it so far
0
u/theblancmange 11d ago
I just use ncurses for the apps i write at work- simple status info in tables. it is good enough, performs well on redraws.