aboutsummaryrefslogtreecommitdiffstats
path: root/test/password.rs
blob: 2900c511107f07c41323cc709e0b90913c3b711c (plain) (blame)
1
2
3
4
5
6
7
8
9
extern mod term;

fn main () {
    print("Enter password: ");
    term::ios::echo(false);
    let pass = io::stdin().read_line();
    term::ios::echo(true);
    println(fmt!("\nYour password is: %s", pass));
}