From 10b956a012a93c19d6deb0159a67d25011f622e1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 18 Nov 2013 16:26:03 -0800 Subject: 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. --- src/libstd/rt/rtio.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libstd/rt') 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 { -- cgit 1.4.1-3-g733a5