Comparison of Backends
Ratatui interfaces with the terminal emulator through its “backends”. These are powerful libraries
that grant ratatui
the ability to capture keypresses, maneuver the cursor, style the text with
colors and other features. As of now, ratatui
supports three backends:
Selecting a backend does influence your project’s structure, but the core functionalities remain consistent across all options. Here’s a flowchart that can help you make your decision.
Though we try to make sure that all backends are fully-supported, the most commonly-used backend is Crossterm. If you have no particular reason to use Termion or Termwiz, you will find it easiest to learn Crossterm simply due to its popularity.