Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a Linux program with a TUI

I want to make a Linux program with a text-based user interface. What is the best way to go about this? Upon searching the internet I discovered the curses and ncurses libraries. What are the differences between the two, and which if any is better (or is there an even better option)? I prefer C but am open to using other languages.

Thanks

like image 615
Mahdi Avatar asked Nov 20 '25 15:11

Mahdi


1 Answers

The curses library is an old ATT unix thing, its equivalent free library is ncurses, available for Linux and other systems.

You could also use the GNU readline library, particularly if you want a single-line, but editable and completable, interface.

like image 117
Basile Starynkevitch Avatar answered Nov 25 '25 00:11

Basile Starynkevitch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!