heads
heads copied to clipboard
Repeat question prompts on unexpected input
Is your feature request related to a problem? Please describe.
Currently unexpected input on question prompts leads to heads choosing the default option.
This is often unintended by the user, who may e.g. use a non-US keyboard, hit y on the first question prompt, but receives some other character as result. If the default is n, heads continues, forcing the user to reboot to make the correct choice.
Describe the solution you'd like
Only allow y/n/return (case insensitive) and repeat the previous question prompt in all other cases.
Describe alternatives you've considered
Keyboard layout support may come later and users make mistakes / accidentally hit the wrong button even with that.