Validate input for a simple menu.
Validate input for a simple menu.Displays a long menu (lmenu) once per session (if showmenu), plus whenever the question mark (?) is entered. The prompt is a short version of the long menu (smenu). Options are single characters contained in opts. In case of error, err is prompted. Defaults are handled in the usual way. The selection is returned in option[0].