bevy_ratatui 0.3.0

A Bevy plugin for building terminal user interfaces with Ratatui
Documentation

Bevy_ratatui

An experiment using Ratatui from within a Bevy app.

The goal of this was not to do any rendering / 3D / etc. in the terminal, but just to see how useful it is to use the bevy concepts for apps.

Demonstrates:

  • Resource for the terminal (wrapped in a Context struct)
  • ScheduleRunnerPlugin to run the app loop
  • Events to communicate
  • States to handle changing from one state to another (e.g. positive to negative)

Run the example app:

cargo run --example demo

Keys:

  • Left / Right - modify the counter (look at what happens when you go negative)
  • Q / Esc - quit
  • P - simulate a panic (tests the color_eyre panic hooks)

Made with VHS

Ideas on progressing this

Previous bevy_ratatui crate

Previously there was another crate using this name which has since migrated to ratatui_egui_wasm. A ratatui backend that is also an egui widget. Deploy on web with WASM or ship natively with bevy, macroquad, or eframe. Demo at https://gold-silver-copper.github.io/

License

Copyright (c) Josh McKinney

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.