mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.29k stars 243 forks source link

Menu Component #394

Open buko opened 6 years ago

buko commented 6 years ago

Looking for some pointers on implementing Menus.

There's an ActionListDialog which does most of what a 'Menu' would do. A Menu is like an ActionListDialog where some of the actions can open another dialog (they are sub-menus). The last bit would be to offer the user a quick way to navigate back 'up' the menu -- perhaps this could be done by listening for the 'backspace/delete' key?

Ideas on the best way to go about implementing this?

mabe02 commented 6 years ago

I think there is a contributed menu pull request that I haven't gone through yet. The plan was to merge it for 3.1 at some point.

mabe02 commented 6 years ago

https://github.com/mabe02/lanterna/pull/342