How to create a text menu?

Hello,

I’m a new Ruby programmer and I would like
to create a text menu as :

Menu title

1 - First option
2 - Second option
3 - Third option

with a “>” cursor to select an option which
can be moved up and down with the upkey and
the downkey.

After, i would like to create a menu as :

First option : enter your text here
Second option : enter your text here

where it is possible to edit the first
option and the second option and to return
at the first option when you press the upkey
if you have made an error

Thanks,

Jb

PS : Sorry for my poor English

Jb,

Take a look at the ncurses library; with relatively little mucking around the
kind of functionality you’re looking for is possible.

~ Bruce

···


Bruce R. Williams :: [iusris/#ruby-lang] :: http://www.codedbliss.com

‘It does not require a majority to prevail, but rather an irate,
tireless minority keen to set brush fires in people’s minds.’
– Samuel Adams