Skip to main content

render_palette

Function render_palette 

Source
pub fn render_palette(commands: &[Command], filter: &str) -> String
Expand description

Renders the shared command palette overlay to deterministic terminal text.

Builds the surface-neutral palette_scene for commands filtered by filter, then walks it through the same render_scene path used for every other scene, so the palette is just another overlay on the terminal. Output is ASCII and deterministic: equal inputs yield an equal String.