diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-04-03 02:43:29 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-04-03 02:46:18 -0500 |
commit | 3e95a135f67b52589957c14595ad3837c7f2f1e5 (patch) | |
tree | cc39a9f97ada9bf4c82b685c055ef6bd29e98475 /src/ios.rs | |
parent | 84dd024e5a6175ff5e18c7a8338f468d5f16944f (diff) | |
download | rust-term-3e95a135f67b52589957c14595ad3837c7f2f1e5.tar.gz rust-term-3e95a135f67b52589957c14595ad3837c7f2f1e5.zip |
actually, let's not reexport the termios stuff at the top level
Diffstat (limited to 'src/ios.rs')
-rw-r--r-- | src/ios.rs | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -1,4 +1,4 @@ -use core::libc::{c_int,c_uint,c_void}; +use core::libc::{c_int,c_void}; use util::guard; pub fn cooked () -> int { @@ -24,15 +24,6 @@ pub fn preserve<T> (body: &fn () -> T) -> T { } } -pub fn size() -> (uint, uint) { - let cols: c_uint = 0; - let rows: c_uint = 0; - unsafe { - c::size(&cols, &rows) - } - (cols as uint, rows as uint) -} - #[link_name = "termios_wrapper"] extern mod c { fn cooked () -> c_int; @@ -42,6 +33,4 @@ extern mod c { fn get() -> *c_void; fn set(t: *c_void); - - fn size(cols: *c_uint, rows: *c_uint); } |