|
Home > Archive > Unix Programming > July 2004 > console app developer
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
console app developer
|
|
|
| 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.
Thanks
Eric
| |
| Rich Gibbs 2004-07-03, 6: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
| |
| Andrew Gabriel 2004-07-04, 8:14 am |
| In article <40e72aa6@news101.his.com>,
Rich Gibbs <rgibbs@REMOVEalumni.CAPSprinceton.edu> writes:
> 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.
vi barely scratches the surface of what curses (and I presume ncurses)
can do -- it's a lot more powerful that you might imagine just from
using it through vi.
--
Andrew Gabriel
Consultant Software Engineer
| |
| Rich Gibbs 2004-07-04, 5:52 pm |
| Andrew Gabriel said the following, on 07/04/04 05:31:
> In article <40e72aa6@news101.his.com>,
> Rich Gibbs <rgibbs@REMOVEalumni.CAPSprinceton.edu> writes:
>
>
>
> vi barely scratches the surface of what curses (and I presume ncurses)
> can do -- it's a lot more powerful that you might imagine just from
> using it through vi.
>
Yes. I should have said so in so many words, but I think it can do all
the things the OP asked about.
--
Rich Gibbs
rgibbs@alumni.princeton.edu
|
|
|
|
|