Skip to content

Commit 6af049a

Browse files
committed
Enable tty support on macOS
Crossterm has added tty pipe support behind a feature flag. This enables that feature flag on macOS to allow for pipes to work again. This technically creates a small performance drop on macOS, but since this application is generally not IO bounded, this should be okay.
1 parent 24a5637 commit 6af049a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Cargo.lock

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/input/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ parking_lot = "0.12.1"
2424
girt-config = {version = "2.3.0", path = "../config"}
2525
girt-runtime = {version = "2.3.0", path = "../runtime"}
2626

27+
# Fix tty issues on MacOS
28+
[target.'cfg(target_os = "macos")'.dependencies]
29+
crossterm = { version = "0.26.1", features = ["use-dev-tty"] }
30+
2731
[dev-dependencies]
2832
rstest = "0.18.1"
2933
lazy_static = "1.4.0"

0 commit comments

Comments
 (0)