07-03-04 11:58 PM
Eric said the following, on 07/03/04 14:07:
> Hi,
> Is there any kind of program that will assist in
> developing the type of console app that has color,
> tabbed windows, selection items, pop up windows etc,
> (kind of in the style of linuxconf - how'd they do that?).
> I have a console app i wrote and right now the user
> has to type in a selection of items taken from a list of
> about 120 items. The users selection may be as few as
> ten of those or as many as 60, all choices are numeric.
> Right now I use "gets" to get the user's choices and the
> items are type in like this: 1,4,5,9,11,57,58,100,104
> It would be much nicer if i could present a list of all the
> items available to choose from in some kind of table format
> and the user could "arrow around" from item to item and select
> or deselect it via hitting the space bar or clicking on it
> with a mouse.
> I want to keep this in console mode tho, not as a
> graphical GUI in kde or gnome.
>
The traditional way of writing full-screen, character-based apps in the
Unix/Linux world is to use the ncurses(3) library. I'm not familiar
with the 'linuxconf' application, but ncurses will give you the same
sort of capabilities that you would find in something like the vi/vim
editors.
--
Rich Gibbs
rgibbs@alumni.princeton.edu
[ Post a follow-up to this message ]
|