bevy_slt
Bevy integration for SuperLightTUI.
Terminal apps
SltTerminalPlugin (feature terminal, on by default) renders to the real
terminal. It installs an SltTerminalContext non-send resource at startup,
forwards terminal input as Bevy messages (SltKeyMessage, SltMouseMessage,
SltFocusMessage, SltPasteMessage, SltResizeMessage) in PreUpdate,
writes AppExit on Ctrl+C (disable with .ctrl_c_exit(false)), and
restores the terminal on exit or panic.
use Duration;
use ScheduleRunnerPlugin;
use *;
use ;
use RunConfig;
See examples/widget_demo.rs for tabs, tables, inputs, and mouse handling.
Headless rendering
SltHeadlessPlugin renders to an in-memory buffer and publishes each frame as
the SltOutput resource (plain text plus styled cells), for display with Bevy
UI, a texture, or assertions in tests. Queue input with
SltContext::push_event.
use App;
use Result;
use *;
use ;
let mut app = new;
app.add_plugins.add_systems;
app.update;
let output = app.world.;
assert!;
Headless-only consumers can depend on bevy_slt with
default-features = false to skip the terminal machinery entirely.