diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-03-19 22:48:52 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-03-19 22:48:52 -0500 |
commit | 1fa0019d580450ab106d2a1f3ed9c622218c0dbf (patch) | |
tree | fec4f7a9cdf255f695eeb7223c3988d0adaec87e | |
parent | 771c8bebde83ca8f8395078c44e582e7c25200d0 (diff) | |
download | rust-term-1fa0019d580450ab106d2a1f3ed9c622218c0dbf.tar.gz rust-term-1fa0019d580450ab106d2a1f3ed9c622218c0dbf.zip |
another test
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | test/termios2.rs | 10 |
2 files changed, 11 insertions, 1 deletions
@@ -2,7 +2,7 @@ RUSTC = rustc MAIN_SOURCE = src/term.rs OTHER_SOURCES = src/ios.rs src/info.rs -TESTS = bin/termios +TESTS = bin/termios bin/termios2 all: build tests 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); + } +} |