aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-03-19 22:48:52 -0500
committerJesse Luehrs <doy@tozt.net>2013-03-19 22:48:52 -0500
commit1fa0019d580450ab106d2a1f3ed9c622218c0dbf (patch)
treefec4f7a9cdf255f695eeb7223c3988d0adaec87e /test
parent771c8bebde83ca8f8395078c44e582e7c25200d0 (diff)
downloadrust-term-1fa0019d580450ab106d2a1f3ed9c622218c0dbf.tar.gz
rust-term-1fa0019d580450ab106d2a1f3ed9c622218c0dbf.zip
another test
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);
+ }
+}