Terminal
A terminal transcript with an input line.
GUITUIRuns in the browser
terminalPreview
















Usage example
fn terminal_demo() -> NodeBuilder { let lines = vec![ String::from("$ cargo build"), String::from(" Compiling sigil-ui v0.1.0"), String::from(" Finished dev profile"), ]; container() .layout(LayoutStyle::flex_column().fill_width().height(120.0)) .child(terminal(signal(lines), |_| {})) }fn terminal_demo() -> NodeBuilder { let lines = vec![ String::from("$ cargo build"), String::from( " Compiling sigil-ui v0.1.0", ), String::from( " Finished dev profile", ), ]; container() .layout( LayoutStyle::flex_column() .fill_width() .height(120.0), ) .child(terminal( signal(lines), |_| {}, ))}States

Default
Hover
Pressed
Focused
API
| Name | Signature | Purpose |
|---|---|---|
terminal | fn terminal(lines: Signal<Vec<String>>, on_input: impl Fn(String) + 'static) -> NodeBuilder | A terminal transcript with an input line. |