about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-11-18 16:26:03 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-11-18 16:29:41 -0800
commit10b956a012a93c19d6deb0159a67d25011f622e1 (patch)
tree5dcf823d29b8ac2df0061d9660b28b503fe53bfd /src/libstd/rt
parent3d569df41de221ce5b0ffd385caaa9fd6d5fb2ff (diff)
downloadrust-10b956a012a93c19d6deb0159a67d25011f622e1.tar.gz
rust-10b956a012a93c19d6deb0159a67d25011f622e1.zip
Allow piped stdout/stderr use uv_tty_t
There are issues with reading stdin when it is actually attached to a pipe, but
I have run into no problems in writing to stdout/stderr when they are attached
to pipes.
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/rtio.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/rt/rtio.rs b/src/libstd/rt/rtio.rs
index 35fb8baa6ce..775f9d6c3be 100644
--- a/src/libstd/rt/rtio.rs
+++ b/src/libstd/rt/rtio.rs
@@ -230,6 +230,7 @@ pub trait RtioTTY {
     fn write(&mut self, buf: &[u8]) -> Result<(), IoError>;
     fn set_raw(&mut self, raw: bool) -> Result<(), IoError>;
     fn get_winsize(&mut self) -> Result<(int, int), IoError>;
+    fn isatty(&self) -> bool;
 }
 
 pub trait PausibleIdleCallback {