In the external file where we defined the colors, for each color
keep also a character that will be used to display the menu:
File:
yellow y
brown z
black b
blue e
When displaying the menu show:
y) yellow
z) brown
b) black
e) blue
and wait till the user selects the appropriate letter.
If you are interested in on-site trainings by the author, please
contact me directly.
|