terminal-size: disable windows
Sylvestre Ledru
1 year, 6 months ago
4 | 4 |
===================================================================
|
5 | 5 |
--- terminal-size.orig/src/unix.rs
|
6 | 6 |
+++ terminal-size/src/unix.rs
|
7 | |
@@ -48,6 +48,29 @@ fn compare_with_stty() {
|
|
7 |
@@ -42,6 +42,29 @@ fn compare_with_stty() {
|
8 | 8 |
use std::process::Command;
|
9 | 9 |
use std::process::Stdio;
|
10 | 10 |
|
|
34 | 34 |
let (rows, cols) = if cfg!(target_os = "illumos") {
|
35 | 35 |
// illumos stty(1) does not accept a device argument, instead using
|
36 | 36 |
// stdin unconditionally:
|
37 | |
@@ -83,14 +106,14 @@ fn compare_with_stty() {
|
|
37 |
@@ -77,14 +100,14 @@ fn compare_with_stty() {
|
38 | 38 |
Command::new("stty")
|
39 | 39 |
.arg("size")
|
40 | 40 |
.arg("-F")
|
|
51 | 51 |
.arg("size")
|
52 | 52 |
.stderr(Stdio::inherit())
|
53 | 53 |
.output()
|
54 | |
@@ -108,7 +131,7 @@ fn compare_with_stty() {
|
|
54 |
@@ -102,7 +125,7 @@ fn compare_with_stty() {
|
55 | 55 |
};
|
56 | 56 |
println!("{} {}", rows, cols);
|
57 | 57 |
|
|
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 |
+# ]
|
0 | 0 |
create-terminal-for-testing.patch
|
|
1 |
disable-windows.diff
|