如何编写使用终端作为GUI应用程序? (C语言)

如何编写使用终端作为GUI应用程序? (C语言)

问题描述:

我想编写一个应用程序(C语言)使用Unix操作系统作为它的图形用户界面的终端。我的意思是种emacs的,六等是占据整个终端窗口,戒烟后跳回到输入提示的应用程序。结果
你会如何​​去这样做,preferably用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?

您需要使用ncurses的:

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.