SkipHuffman has asked for the wisdom of the Perl Monks concerning the following question:

I need to create a terminal interface for an application. Three columns of options that can be navigated to by arrow keys or by hotkeys. Something like this
FileReportUser
Open fileCreate ReportUpdate User
New FilePrint ReportChange User
Close filePurge ReportExit User

Of course I need to do something with what I get out of it. How can I do this?

Update. Looks like Curses::Forms might be useful for this. Need to find a decent tutorial.

Skip

Replies are listed 'Best First'.
Re: Three Column Menu
by kwaping (Priest) on Oct 19, 2006 at 19:29 UTC
    Term::Menus and Term::ANSIMenu both look interesting, though I know at least Term::Menus doesn't do 3-column output like you're requesting. Does this need to be in a dumb terminal, or can you use Tk? (r.i.p. Nick)

    ---
    It's all fine and dandy until someone has to look at the code.

      Thanks. I have looked at Term:Menus, and as you say it only does a single column. It also forces the hotkey to be separate. Pretty much has to be dumb terminal. I am matching look and feel of an extant app.

      I will look into Term:ANSIMenu.

      Skip