aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/termios2.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/termios2.rs b/test/termios2.rs
new file mode 100644
index 0000000..a653855
--- /dev/null
+++ b/test/termios2.rs
@@ -0,0 +1,10 @@
+extern mod term;
+use core::io::{ReaderUtil,WriterUtil};
+
+fn main () {
+ term::ios::raw();
+ loop {
+ let ch = io::stdin().read_char();
+ io::stdout().write_char(ch);
+ }
+}