We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
winsize()
1 parent 0b01a9b commit 04c947cCopy full SHA for 04c947c
src/libstd/sys/unix/tty.rs
@@ -23,6 +23,8 @@ pub struct TTY {
23
}
24
25
#[cfg(any(target_os = "macos",
26
+ target_os = "ios",
27
+ target_os = "dragonfly",
28
target_os = "freebsd",
29
target_os = "bitrig",
30
target_os = "openbsd"))]
@@ -54,12 +56,6 @@ impl TTY {
54
56
Err(sys_common::unimpl())
55
57
58
- #[cfg(any(target_os = "linux",
- target_os = "android",
59
- target_os = "macos",
60
- target_os = "freebsd",
61
- target_os = "bitrig",
62
- target_os = "openbsd"))]
63
pub fn get_winsize(&mut self) -> IoResult<(int, int)> {
64
unsafe {
65
#[repr(C)]
@@ -82,10 +78,4 @@ impl TTY {
82
78
83
79
84
80
85
-
86
- #[cfg(any(target_os = "ios",
87
- target_os = "dragonfly"))]
88
- pub fn get_winsize(&mut self) -> IoResult<(int, int)> {
89
- Err(sys_common::unimpl())
90
- }
91
81
0 commit comments