console-rs / dialoguer

Rust utility library for nice command line prompts and similar things
MIT License
1.31k stars 143 forks source link

Add '1' and '0' as allowed keys for `Confirm` #279

Open Gordon01 opened 1 year ago

Gordon01 commented 1 year ago

Fixes: https://github.com/console-rs/dialoguer/issues/256

In an effort to foster a more inclusive and accessible user interface, this PR introduces '1' and '0' as alternative input options alongside 'y' and 'n' in the text confirmation prompt.