LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to create text mode GUI? (https://www.linuxquestions.org/questions/linux-software-2/how-to-create-text-mode-gui-720912/)

PhillipHuang 04-22-2009 08:48 AM

How to create text mode GUI?
 
Hi all,

I want to create a simply "GUI" in Linux text mode,just like those UIs when use "test mode install". My questions are below:

1. Which language would be the best choice for this task?
2. If use Perl, is there any relevant .pm?

Please give me some hints, thanks in advanced.

Phillip

Spudley 04-22-2009 09:01 AM

The toolkit you're looking for is called ncurses.

See:
http://en.wikipedia.org/wiki/Ncurses
http://www.gnu.org/software/ncurses/

Quote:

ncurses is a programming library providing an API, allowing the programmer to write text user interfaces in a terminal-independent manner. It's a toolkit for developing "GUI-like" apps which run under a terminal emulator.
There are probably others available, but that's the one that is used for all the open source software I can think of.

pixellany 04-22-2009 11:03 AM

To me a "GUI" means that you can click on things with a mouse. The typical text-mode interaction just allows tabbing between options, and selecting with "enter". That you can do---eg---with dialog.

PhillipHuang 04-22-2009 10:39 PM

Spudley/Pixellany,

Thanks for your kindly help. I will try ncurses.

Phillip


All times are GMT -5. The time now is 12:14 PM.