Ratatui

Ratatui

github.com

1

About this website

Ratatui is a Rust library for building rich, interactive terminal user interfaces (TUIs), originally forked from the tui-rs library created by Florian Dehau and now actively maintained by the Ratatui community (including Orhun Parmaksiz and Josh McKinney). It provides a comprehensive set of widgets, layout primitives, and rendering abstractions that make it possible to build complex, full-screen terminal applications with minimal effort. The library is used by popular Rust CLI tools and applications including gitui, bottom, spotify-tui, and thousands of other Rust projects. Core capabilities include: over 30 built-in widgets such as Block (borders and titles), Paragraph (text with wrapping and alignment), List (selectable lists), Table (tabular data with column constraints), Charts (line and bar charts), Gauge (progress bars), Tabs (tab navigation), Canvas (for drawing arbitrary shapes and custom graphics), Sparkline, Calendar, and Tree views; a flexible layout system using the Layout and Constraint types that supports percentage-based, length-based, and ratio-based spatial distribution using the Cassowary constraint solving algorithm; support for both direct and double-buffered rendering to prevent screen flickering; event handling for keyboard input, mouse events, terminal resize events, and custom events loops; support for multiple backend crossterm (cross-platform, recommended for new projects) and termion (Unix-only); Unicode and wide character support including full-width CJK characters and emoji rendering; color support including 16-color, 256-color, and true color (24-bit RGB) with automatic terminal capability detection; and styling with the Style struct for foreground color, background color, and text modifiers (bold, italic, underlined, crossed-out, etc.). As of 2026, Ratatui has over 12,000 GitHub stars.

Tags & Categories

Categories

Tags

Statistics

1
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!