diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-04-08 21:51:14 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-04-08 21:51:14 -0500 |
commit | 50fe57cbcba4a35665e0c622852bfa33b024aea8 (patch) | |
tree | 499a896b1e1f1e31bdc50e0630c69289d598970b /src | |
parent | fe6d6863b20495995924e6dd328746df617571d5 (diff) | |
download | rust-term-50fe57cbcba4a35665e0c622852bfa33b024aea8.tar.gz rust-term-50fe57cbcba4a35665e0c622852bfa33b024aea8.zip |
isatty is already exposed, no need to do it again
Diffstat (limited to 'src')
-rw-r--r-- | src/term.rs | 2 | ||||
-rw-r--r-- | src/util.rs | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/src/term.rs b/src/term.rs index e876dfa..dfe6dce 100644 --- a/src/term.rs +++ b/src/term.rs @@ -5,7 +5,7 @@ #[crate_type = "lib"]; -pub use util::{isatty,size}; +pub use util::size; pub mod hexes; pub mod info; diff --git a/src/util.rs b/src/util.rs index 2b3580e..09d8c11 100644 --- a/src/util.rs +++ b/src/util.rs @@ -37,12 +37,3 @@ pub fn size() -> (uint, uint) { extern mod termios_wrapper { fn size(cols: *c_uint, rows: *c_uint); } - -pub fn isatty() -> bool { - unsafe { c_isatty(0) as bool } -} - -extern { - #[link_name = "isatty"] - fn c_isatty(fd: c_int) -> c_int; -} |