Installation
ratatui
is a standard rust crate and can be installed into your app using the following command:
or by adding the following to your Cargo.toml
file:
By default, ratatui
enables the crossterm
feature, but it’s possible to alternatively use
termion
, or termwiz
instead by enabling the appropriate feature and disabling the default
features. See Backend for more information.
::: note
Before Ratatui 0.27.0, it was necessary to import a backend crate that matched the backend feature. In 0.27.0 Ratatui now exports the backend crates at the root to make it easier to ensure a matching version of the backend crate is used.
:::
For Termion:
or in your Cargo.toml
:
For Termwiz:
or in your Cargo.toml
: