aboutsummaryrefslogtreecommitdiffstats
path: root/src/ios.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-03-21 01:16:29 -0500
committerJesse Luehrs <doy@tozt.net>2013-03-21 01:16:29 -0500
commit3c8d221d7fa7f5e71abbaa753044d5015948f0ea (patch)
treee0f6c507c4d1b76fda737c1d67500dcd327fe25e /src/ios.rs
parent50db2cec5f96d2f26ab5363a1beb870ed6482abc (diff)
downloadrust-term-3c8d221d7fa7f5e71abbaa753044d5015948f0ea.tar.gz
rust-term-3c8d221d7fa7f5e71abbaa753044d5015948f0ea.zip
isatty doesn't really belong with termios
Diffstat (limited to 'src/ios.rs')
-rw-r--r--src/ios.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/ios.rs b/src/ios.rs
index f926aad..fc03c79 100644
--- a/src/ios.rs
+++ b/src/ios.rs
@@ -24,10 +24,6 @@ pub fn preserve<T> (body: &fn () -> T) -> T {
}
}
-pub fn isatty() -> bool {
- unsafe { c_isatty(0) as bool }
-}
-
pub fn size() -> (uint, uint) {
let cols: c_uint = 0;
let rows: c_uint = 0;
@@ -51,8 +47,3 @@ extern mod c {
fn size(cols: *c_uint, rows: *c_uint);
}
-
-extern {
- #[link_name = "isatty"]
- fn c_isatty(fd: c_int) -> c_int;
-}