24 releases

new 0.0.29 Nov 13, 2024
0.0.23 Sep 28, 2024
0.0.21 Aug 6, 2024
0.0.20 Jul 28, 2024
0.0.10 Jun 26, 2024

#306 in Game dev

Download history 1261/week @ 2024-07-28 148/week @ 2024-08-04 7/week @ 2024-08-11 144/week @ 2024-09-01 23/week @ 2024-09-08 109/week @ 2024-09-15 128/week @ 2024-09-22 63/week @ 2024-09-29 13/week @ 2024-10-06 8/week @ 2024-10-13 19/week @ 2024-10-20 4/week @ 2024-10-27 36/week @ 2024-11-03 110/week @ 2024-11-10

170 downloads per month

MIT/Apache

22KB
389 lines

egui_ratatui : egui widget + ratatui backend (WASM)

Crates.io Documentation License Downloads + Downloads

Discord: https://discord.gg/tDBPkdgApN https://discord.gg/tDBPkdgApN

See Bevy and Macroquad folders for game engine examples

Web Demo : https://gold-silver-copper.github.io/ (works best on firefox)

See also: https://ratatui.rs/ https://github.com/emilk/egui

RataguiBackend is the name of the backend/widget in code

cargo add egui_ratatui

git clone https://github.com/gold-silver-copper/egui_ratatui.git

cd egui_ratatui

cd bevy_example

cargo run

This repo provides the Ratagui Backend, which is also a Widget for egui. So you can have a whole ratatui terminal inside of egui. Also since egui is so WASM compatible, this means we can use this to compile ratatui to WASM !

If you would like more information about compiling to WASM please consult the relevant EGUI backend documentation:

Bevy: https://bevy-cheatbook.github.io/platforms/wasm.html

Macroquad: https://macroquad.rs/articles/wasm/

eframe: https://github.com/emilk/eframe_template

Previously this repo was called 'ratatatui_egui_wasm' and the crate was called 'ratframe' , I decided to rename it to egui_ratatui for clarity and discoverability , please see the PRE-RENAME branch for the last version of ratframe.

Warning: seems theres currently a weird bug with high DPI displays that can break the render a bit. This bug is also pushing me to remove the internal use of the Label widget for wrapping the text layout. Will do that soon enough.

Dependencies

~10–16MB
~198K SLoC