Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Improve the color selector

In the external file where we defined the colors, for each color
keep also a character that will be used to display the menu:

{% embed include file="src/examples/hashes/color_map.txt)

When displaying the menu show:

y) yellow
z) brown
b) black
e) blue

and wait till the user selects the appropriate letter.

Allow the user to provide a color on the command line
using the --color option and check if that is one of
the valid colors.

When reading in the file describing the menu options,
check for duplicate use of the same letter.