pub fn run_inline(height: u32, f: impl FnMut(&mut Context)) -> Result<()>Expand description
Run the TUI in inline mode with default configuration.
Renders height rows directly below the current cursor position without
entering alternate screen mode. Useful for CLI tools that want a small
interactive widget below the prompt.
§Example
fn main() -> std::io::Result<()> {
slt::run_inline(3, |ui| {
ui.text("Inline TUI — no alternate screen");
})
}