From dbda5429d5fffc45c36fe67d8f3467b64ac81425 Mon Sep 17 00:00:00 2001 From: rhysd Date: Fri, 14 Apr 2023 22:10:05 +0900 Subject: [PATCH] fix how to install tui-textarea with ratatui support --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cf3966b..63332f2 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Simple modal text editor like `vi`. ### Examples for [ratatui][] support All above examples uses [tui-rs][], but some examples provide [ratatui][] version. Try `ratatui_` prefix. In these cases, -you need to specify features to use `ratatui` and `--no-default-features` flag explicltly. +you need to specify features to use ratatui and `--no-default-features` flag explicitly. ```sh # ratatui version of `minimal` example @@ -142,19 +142,19 @@ shows feature names corresponding to the dependencies. | tui-rs | `crossterm` (enabled by default) | `termion` | | ratatui | `ratatui-crossterm` | `ratatui-termion` | -For example, when you want to use [ratatui][] and [crossterm][], +For example, when you want to use the combination of [ratatui][] and [crossterm][], ```toml [dependencies] ratatui = "*" -tui-textarea = { version = "*", features = ["ratatui-crossterm"] default-features=false } +tui-textarea = { version = "*", features = ["ratatui-crossterm"], default-features=false } ``` **Note:** [tui-rs][] support and [ratatui][] support are exclusive. When you use [ratatui][] support, you must disable [tui-rs][] support by `default-features=false`. -**Note:** Versions of [crossterm][] crate are different between [tui-rs][] and [ratatui][]. Please choose correct version -of the crate as dependency of your project. +**Note:** Versions of [crossterm][] crate are different between [tui-rs][] and [ratatui][]. Please choose the correct +version as dependency of your project. ## Minimal Usage