rpassword
rpassword copied to clipboard
Cross platform Rust library to read a password in the terminal (Linux, BSD, OSX, Windows, WASM).
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...
Changes made for "^U" in fix_line_issues.rs do not show up properly in GitHub's code preview. Recommend viewing via a text editor. I moved the "fix_new_line.rs" to "fix_line_issues.rs" as a potential...
Would it be possible to set the [rust-version](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field) field in Cargo.toml? We would like to support rust 1.59 and therefore currently have to [pin rpassword ^6](https://github.com/PyO3/maturin/pull/1071/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542R14-R74), with the rust-version we...
Trying to use the library (7.2.0) but getting errors or question marks instead of entered characters when using Unicode on Windows. Example code that reproduces this: ``` use std::io::Write; fn...
Here: https://github.com/conradkleinespel/rpassword/blob/49e3f3a3b25514b78375e97ad8d663ea7e35ad1c/src/lib.rs#L76-L77 This makes an extra syscall, even though the value can be just `Copy`ed.
My test code is ```rust use rpassword::prompt_password; #[test] fn test_prompt_password() { let passwd = prompt_password("请输入密码:").unwrap(); } ``` where the prompt is simplified Chinese. It should print given prompt: ``` "请输入密码:"...