diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-06 10:46:58 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-06 10:46:58 +0800 |
commit | 3e0d4b022ff8d6ce5115894f3b6ad68f01ff370f (patch) | |
tree | 16868154ff1e09fbf6254f8cfa0b88e2b7050b8e | |
parent | 98f850a1ccd30618620a7d78999899c24463238a (diff) |
Always use crossterm for now just to test if it works and…
…it does!
-rw-r--r-- | Cargo.toml | 8 | ||||
-rw-r--r-- | src/main.rs | 2 |
2 files changed, 3 insertions, 7 deletions
@@ -20,19 +20,14 @@ petgraph = "0.5" itertools = "0.9.0" open = "1.2.2" log = "0.4.6" -tui-react = { version = "0.4" } +tui-react = "0.4" num_cpus = "1.10.0" unicode-segmentation = "1.3.0" filesize = "0.2.0" flume = {version = "0.7.1", default-features = false} anyhow = "1.0.31" - -[target.'cfg(windows)'.dependencies] crosstermion = { version = "0.1.3", default-features = false, features = ["tui-react-crossterm", "input-thread-flume"]} -[target.'cfg(unix)'.dependencies] -crosstermion = { version = "0.1.3", default-features = false, features = ["tui-react-termion", "input-thread-flume"]} - [[bin]] name="dua" path="src/main.rs" @@ -49,6 +44,7 @@ codegen-units = 1 [dev-dependencies] # Tests only run on linux as we use some conveniences offered by termion +crosstermion = { version = "0.1.3", default-features = false, features = ["tui-react-termion", "input-thread-flume"]} termion = "1.5.2" pretty_assertions = "0.6.1" diff --git a/src/main.rs b/src/main.rs index 8642963..91d0fce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ fn main() -> Result<()> { Some(Interactive { input }) => { let mut terminal = new_terminal( AlternateRawScreen::try_from(io::stdout()) - .with_context(|| "Failed to initialize alternate raw screen")?, + .with_context(|| "Interactive mode requires a connected terminal")?, ) .with_context(|| "Could not instantiate terminal")?; let res = TerminalApp::initialize( |