Codebase list rust-libslirp / 7320978
terminal-size: disable windows Sylvestre Ledru 1 year, 6 months ago
3 changed file(s) with 24 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
44 ===================================================================
55 --- terminal-size.orig/src/unix.rs
66 +++ terminal-size/src/unix.rs
7 @@ -48,6 +48,29 @@ fn compare_with_stty() {
7 @@ -42,6 +42,29 @@ fn compare_with_stty() {
88 use std::process::Command;
99 use std::process::Stdio;
1010
3434 let (rows, cols) = if cfg!(target_os = "illumos") {
3535 // illumos stty(1) does not accept a device argument, instead using
3636 // stdin unconditionally:
37 @@ -83,14 +106,14 @@ fn compare_with_stty() {
37 @@ -77,14 +100,14 @@ fn compare_with_stty() {
3838 Command::new("stty")
3939 .arg("size")
4040 .arg("-F")
5151 .arg("size")
5252 .stderr(Stdio::inherit())
5353 .output()
54 @@ -108,7 +131,7 @@ fn compare_with_stty() {
54 @@ -102,7 +125,7 @@ fn compare_with_stty() {
5555 };
5656 println!("{} {}", rows, cols);
5757
0 Index: terminal-size/Cargo.toml
1 ===================================================================
2 --- terminal-size.orig/Cargo.toml
3 +++ terminal-size/Cargo.toml
4 @@ -31,9 +31,9 @@ repository = "https://github.com/eminenc
5 version = "0.35.7"
6 features = ["termios"]
7
8 -[target."cfg(windows)".dependencies.windows-sys]
9 -version = "0.36.0"
10 -features = [
11 - "Win32_Foundation",
12 - "Win32_System_Console",
13 -]
14 +# [target."cfg(windows)".dependencies.windows-sys]
15 +# version = "0.36.0"
16 +# features = [
17 +# "Win32_Foundation",
18 +# "Win32_System_Console",
19 +# ]
00 create-terminal-for-testing.patch
1 disable-windows.diff