Skip to content

Menu types

Héctor Barreras Almarcha edited this page Oct 11, 2017 · 1 revision

A menu is a list of options the user can interact with. There are two types of menus you can choose from:

  • Index-based menus
  • Command-based menus

Index-based menus

In this kind of menu, the user inputs a number to select an option. It might look like this:

Please, choose an option:
1 - Do something
2 - Do something different
3 - Send feedback
4 - Exit

Command-based menus

In this kind of menu, the user inputs a word to select an option. Something like this, for example:

Invoke a command from the following:
[ls] List something
[dl] Delete something
[dnt] Donate to the project
[ext] Exit

Clone this wiki locally