tty: Flush output. Show an error if an invalid option is selected.
* tty/pinentry-tty.c (confirm): Flush the output after printing the prompt. Echo what the user typed. If the user's selection is invalid, indicate as much.
- Signed-off-by: Neal H. Walfield <neal@g10code.com>