conradkleinespel / rpassword

Cross platform Rust library to read a password in the terminal (Linux, BSD, OSX, Windows, WASM).
Apache License 2.0
244 stars 38 forks source link

Support ^U #70

Closed tobiasvl closed 1 year ago

tobiasvl commented 2 years ago

If I make a typo in my password and press Ctrl+U, it would be nice if it erased my entire password (like in a regular readline session).

It seems like Ctrl+H (backspace) is supported already, but when typing my password "blindly" I often don't realize where the typo is, so it's simpler to start over.

conradkleinespel commented 2 years ago

Good catch! :+1: I am not available to work on this at the moment so if anyone if willing to make a PR for that I'll review it.

conradkleinespel commented 1 year ago

Fixed with help from @LSchallot and published in v7.1.0 on crates.io