diff --git a/src/tty.rs b/src/tty.rs index ea45135..c02d8e1 100644 --- a/src/tty.rs +++ b/src/tty.rs @@ -20,6 +20,7 @@ pub fn is_tty(_stream: T) -> bool { /// This allows for getting stdio representing _only_ the TTY, and not other streams. #[cfg(target_os = "redox")] pub fn get_tty() -> io::Result { + use std::env; fs::OpenOptions::new().read(true).write(true).open(try!(env::var("TTY"))) }