Simple rust mechanism to disable/enable terminal echo on linux systems
- Rust 100%
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE-MIT | ||
| README.md | ||
echo_off
This is a rust library for adjusting the terminal echo property. For instance, when reading a password from the user you may want to turn echo off, and then back on again afterwards.
Not tested on any machines but my own gnu-linux ones.
Turn off echo with:
let mut termios: Termios = Termios::new();
termios.echo_off();
Then later:
termios.echo_on();