Simple rust mechanism to disable/enable terminal echo on linux systems
Find a file
Mike Dilger 9517cf21fc 0.1.1
2017-03-11 12:46:35 +13:00
src Use libc crate 2017-03-11 12:46:26 +13:00
.gitignore Initial commit - echo_off 2015-11-26 13:53:34 +13:00
Cargo.toml 0.1.1 2017-03-11 12:46:35 +13:00
LICENSE-MIT Initial commit - echo_off 2015-11-26 13:53:34 +13:00
README.md Initial commit - echo_off 2015-11-26 13:53:34 +13:00

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();