From 1cfe9bf04424ff7a9f52073c4e5964b34134ba43 Mon Sep 17 00:00:00 2001 From: Texas Toland Date: Fri, 8 Mar 2024 11:43:30 -0600 Subject: [PATCH] Fix panic on Mac from `crossterm::event::poll` Copied ver batim from sigoden/aichat#264. --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 849aec1..a0ec821 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,9 @@ nu-protocol = { version = "0.91.0", features = ["plugin"] } ratatui = "0.26.1" url = "2.4.0" +[target.'cfg(target_os = "macos")'.dependencies] +crossterm = { version = "0.27.0", features = ["use-dev-tty"] } + [lib] bench = false