From 172232352e6a7b50600b9f7d05a83506e8f5913e Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Fri, 19 Jul 2024 17:05:48 -0700 Subject: [PATCH] fix: add use-dev-tty to fix piping to yazi on mac --- Cargo.lock | 12 ++++++++++++ yazi-fm/Cargo.toml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index ad33f98e..8f1921f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -482,6 +482,7 @@ checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df" dependencies = [ "bitflags 2.6.0", "crossterm_winapi", + "filedescriptor", "futures-core", "libc", "mio", @@ -712,6 +713,17 @@ dependencies = [ "thiserror", ] +[[package]] +name = "filedescriptor" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7199d965852c3bac31f779ef99cbb4537f80e952e2d6aa0ffeb30cce00f4f46e" +dependencies = [ + "libc", + "thiserror", + "winapi", +] + [[package]] name = "filetime" version = "0.2.23" diff --git a/yazi-fm/Cargo.toml b/yazi-fm/Cargo.toml index 1c8e14ce..5b45ad7a 100644 --- a/yazi-fm/Cargo.toml +++ b/yazi-fm/Cargo.toml @@ -25,7 +25,7 @@ yazi-shared = { path = "../yazi-shared", version = "0.2.5" } # External dependencies anyhow = "1.0.86" better-panic = "0.3.0" -crossterm = { version = "0.27.0", features = [ "event-stream" ] } +crossterm = { version = "0.27.0", features = [ "event-stream", "use-dev-tty" ] } fdlimit = "0.3.0" futures = "0.3.30" mlua = { version = "0.9.9", features = [ "lua54" ] }