Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e0d4b0

Browse files
committed
Always use crossterm for now just to test if it works and…
…it does!
1 parent 98f850a commit 3e0d4b0

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,14 @@ petgraph = "0.5"
2020
itertools = "0.9.0"
2121
open = "1.2.2"
2222
log = "0.4.6"
23-
tui-react = { version = "0.4" }
23+
tui-react = "0.4"
2424
num_cpus = "1.10.0"
2525
unicode-segmentation = "1.3.0"
2626
filesize = "0.2.0"
2727
flume = {version = "0.7.1", default-features = false}
2828
anyhow = "1.0.31"
29-
30-
[target.'cfg(windows)'.dependencies]
3129
crosstermion = { version = "0.1.3", default-features = false, features = ["tui-react-crossterm", "input-thread-flume"]}
3230

33-
[target.'cfg(unix)'.dependencies]
34-
crosstermion = { version = "0.1.3", default-features = false, features = ["tui-react-termion", "input-thread-flume"]}
35-
3631
[[bin]]
3732
name="dua"
3833
path="src/main.rs"
@@ -49,6 +44,7 @@ codegen-units = 1
4944

5045
[dev-dependencies]
5146
# Tests only run on linux as we use some conveniences offered by termion
47+
crosstermion = { version = "0.1.3", default-features = false, features = ["tui-react-termion", "input-thread-flume"]}
5248
termion = "1.5.2"
5349
pretty_assertions = "0.6.1"
5450

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn main() -> Result<()> {
3131
Some(Interactive { input }) => {
3232
let mut terminal = new_terminal(
3333
AlternateRawScreen::try_from(io::stdout())
34-
.with_context(|| "Failed to initialize alternate raw screen")?,
34+
.with_context(|| "Interactive mode requires a connected terminal")?,
3535
)
3636
.with_context(|| "Could not instantiate terminal")?;
3737
let res = TerminalApp::initialize(

0 commit comments

Comments
 (0)