-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ratatui support #12
Comments
Yes, this should be supported. Though currently I don't have enough velocity to implement this, I'd like to work on this with higher priority when I have enough time. |
One thing I need to clarify is version of crossterm dependency.
Currently |
I confirmed the following change worked. diff --git a/Cargo.toml b/Cargo.toml
index b706d9a..2d8c2c0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,16 +23,19 @@ include = [
[features]
default = ["crossterm"]
-crossterm = ["dep:crossterm", "tui/crossterm"]
+crossterm = ["dep:crossterm-025", "tui/crossterm"]
termion = ["dep:termion", "tui/termion"]
search = ["dep:regex"]
+crossterm-ratatui = ["dep:crossterm-026", "ratatui/crossterm"]
[dependencies]
-crossterm = { version = "0.25", optional = true }
+crossterm-025 = { package = "crossterm", version = "0.25", optional = true }
regex = { version = "1", optional = true }
termion = { version = "1.5", optional = true }
tui = { version = "0.19", default-features = false }
arbitrary = { version = "1", features = ["derive"], optional = true }
+crossterm-026 = { package = "crossterm", version = "0.26", optional = true }
+ratatui = { version = "0.20.1", default-features = false }
[[example]]
name = "minimal" This means
is possible. Now I wonder how handle the combination of
|
I'm working on this in |
Hi @rhysd, thanks for the ratatui support <3 Just followed the instructions on README.md but got this error:
Sorry if it is a silly question, I'm just not familiarized with Cargo releases Additional Info: crossterm = "0.26.1"
tui = { package = "ratatui", version = "0.20.1" }
tui-textarea = { version = "0.2.0", features = ["ratatui-crossterm"], default-features = false } |
With the release of ratatui, it would be nice to have a feature flag or release of this crate that supports it!
https://github.com/tui-rs-revival/ratatui/releases
The text was updated successfully, but these errors were encountered: