| Crates.io | ratatui-crossterm |
| lib.rs | ratatui-crossterm |
| version | 0.1.0 |
| created_at | 2024-09-27 23:20:58.772459+00 |
| updated_at | 2025-12-26 09:43:18.337927+00 |
| description | Crossterm backend for the Ratatui Terminal UI library. |
| homepage | https://ratatui.rs |
| repository | https://github.com/ratatui/ratatui |
| max_upload_size | |
| id | 1389573 |
| size | 69,967 |
This crate provides [CrosstermBackend], an implementation of the Backend trait for the
Ratatui library. It uses the Crossterm library for all terminal manipulation.
ratatui-crossterm requires you to specify a version of the Crossterm library to be used.
This is managed via feature flags. The highest enabled feature flag of the available
crossterm_0_xx features (e.g., crossterm_0_28, crossterm_0_29) takes precedence. These
features determine which version of Crossterm is compiled and used by the backend. Feature
unification may mean that any crate in your dependency graph that chooses to depend on a
specific version of Crossterm may be affected by the feature flags you enable.
Ratatui will support at least the two most recent versions of Crossterm (though we may increase
this if crossterm release cadence increases). We will remove support for older versions in major
(0.x) releases of ratatui-crossterm, and we may add support for newer versions in minor
(0.x.y) releases.
To promote interoperability within the Ratatui ecosystem, the selected Crossterm crate is
re-exported as ratatui_crossterm::crossterm. This re-export is essential for authors of widget
libraries or any applications that need to perform direct Crossterm operations while ensuring
compatibility with the version used by ratatui-crossterm. By using
ratatui_crossterm::crossterm for such operations, developers can avoid version conflicts and
ensure that all parts of their application use a consistent set of Crossterm types and
functions.
For example, if your application's Cargo.toml enables the crossterm_0_29 feature for
ratatui-crossterm, then any code using ratatui_crossterm::crossterm will refer to the 0.29
version of Crossterm.
For more information on how to use the backend, see the documentation for the
[CrosstermBackend] struct.
ratatui-crossterm is part of the Ratatui workspace that was modularized in version 0.30.0.
This crate provides the Crossterm backend implementation for Ratatui.
When to use ratatui-crossterm:
When to use the main ratatui crate:
For detailed information about the workspace organization, see ARCHITECTURE.md.