diff --git a/Cargo.lock b/Cargo.lock index efcdf32..5627b35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -77,7 +77,8 @@ dependencies = [ "memchr", "mio", "rgb", - "terminal-trx", + "terminal-trx 0.1.0", + "terminal-trx 0.2.0", "thiserror", "windows-sys 0.52.0", ] @@ -93,6 +94,16 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "terminal-trx" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a4af7c93f02d5bd5e120c812f7fb413003b7060e8a22d0ea90346f1be769210" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + [[package]] name = "thiserror" version = "1.0.56" diff --git a/Cargo.toml b/Cargo.toml index 9eba56e..9237b0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ rgb = { version = "0.8.37", optional = true } libc = "0.2.151" memchr = "2.7.1" mio = { version = "0.8.10", features = ["os-poll", "os-ext"], default-features = false } -terminal-trx = "0.1.0" +terminal-trx = "0.2.0" [target.'cfg(windows)'.dependencies] terminal-trx = "0.1.0" diff --git a/src/xterm.rs b/src/xterm.rs index 278df01..1a2ccd3 100644 --- a/src/xterm.rs +++ b/src/xterm.rs @@ -102,7 +102,7 @@ fn query( ensure_preconditions(&options.preconditions)?; let mut tty = terminal()?; - let mut tty = tty.lock()?; + let mut tty = tty.lock(); let mut tty = tty.enable_raw_mode()?; write_query(&mut tty)?;