aboutsummaryrefslogtreecommitdiffstats
path: root/test/password.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/password.rs')
-rw-r--r--test/password.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/password.rs b/test/password.rs
new file mode 100644
index 0000000..2900c51
--- /dev/null
+++ b/test/password.rs
@@ -0,0 +1,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));
+}