Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Rust crate for cooking up terminal user interfaces (TUIs) 👨‍🍳🐀https://ratatui.rs

License

NotificationsYou must be signed in to change notification settings

ratatui/ratatui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Table of Contents

Release header

Ratatui (ˌræ.təˈtu.i) is a Rust crate for cooking up terminal user interfaces(TUIs). It provides a simple and flexible way to create text-based user interfaces in the terminal,which can be used for command-line applications, dashboards, and other interactive console programs.

Quickstart

Ratatui hastemplates available to help you get started quickly. You can use thecargo-generate command to create a new project with Ratatui:

cargo install --locked cargo-generatecargo generate ratatui/templates

Selecting the Hello World template produces the following application:

use color_eyre::Result;use crossterm::event::{self,Event};use ratatui::{DefaultTerminal,Frame};fnmain() ->Result<()>{    color_eyre::install()?;let terminal = ratatui::init();let result =run(terminal);    ratatui::restore();    result}fnrun(mutterminal:DefaultTerminal) ->Result<()>{loop{        terminal.draw(render)?;ifmatches!(event::read()?,Event::Key(_)){breakOk(());}}}fnrender(frame:&mutFrame){    frame.render_widget("hello world", frame.area());}

Documentation

You can also watch theEuroRust 2024 talk to learn about common concepts in Ratatui and what'spossible to build with it.

Templates

If you're looking to get started quickly, you can use one of the available templates from thetemplates repository usingcargo-generate:

cargo generate ratatui/templates

Built with Ratatui

Awesome

Check out theshowcase section of the website, or theawesome-ratatui repository for a curatedlist of awesome apps and libraries built with Ratatui!

Alternatives

  • Cursive - a ncurses-based TUI library.
  • iocraft - a declarative TUI library.

Contributing

Discord BadgeMatrix BadgeForum Badge

Feel free to join ourDiscord server for discussions and questions!There is also aMatrix bridge available at#ratatui:matrix.org. We have also recently launched theRatatui Forum.

We rely on GitHub forbugs andfeature requests.

Please make sure you read thecontributing guidelines beforecreating a pullrequest. We accept AI generated code, but please read theAI Contributionsguidelines to ensure compliance.

If you'd like to show your support, you can add the Ratatui badge to your project's README:

[![Built With Ratatui](https://img.shields.io/badge/Built_With_Ratatui-000?logo=ratatui&logoColor=fff)](https://ratatui.rs/)

Built With Ratatui

Acknowledgements

Ratatui was forked from thetui-rs crate in 2023 in order to continue its development. None ofthis could be possible withoutFlorian Dehau who originally createdtui-rs which inspired manyRust TUIs.

Special thanks toPavel Fomchenkov for his work in designing an awesome logo for the Ratatuiproject and organization.

License

This project is licensed under theMIT License.

About

A Rust crate for cooking up terminal user interfaces (TUIs) 👨‍🍳🐀https://ratatui.rs

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors255

Languages


[8]ページ先頭

©2009-2025 Movatter.jp