diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-03-21 01:16:29 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-03-21 01:16:29 -0500 |
commit | 3c8d221d7fa7f5e71abbaa753044d5015948f0ea (patch) | |
tree | e0f6c507c4d1b76fda737c1d67500dcd327fe25e /src/ios.rs | |
parent | 50db2cec5f96d2f26ab5363a1beb870ed6482abc (diff) | |
download | rust-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.rs | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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; -} |