Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write an application that uses the terminal as GUI? (in C)

I'd like to write an application (in C) that uses the terminal of a *nix OS as its GUI. I mean an application of the kinds of emacs, vi etc. that take up the whole terminal window and jump back to the input prompt after quitting.
How would you go about doing that, preferably in C? Can someone point me to a tutorial covering that?

like image 965
shutefan Avatar asked Dec 17 '11 18:12

shutefan


1 Answers

You need to use ncurses:

http://en.wikipedia.org/wiki/Ncurses
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/

It is available on all major distros.

like image 176
RedComet Avatar answered Nov 15 '22 05:11

RedComet