Struct terminal_cli::PromptBuffer [] [src]

pub struct PromptBuffer { /* fields omitted */ }

Holds the current line buffer for a terminal and its possible autocomplete state.

Methods

impl PromptBuffer
[src]

[src]

Create a new prompt buffer

[src]

Print the prompt

[src]

Handle a single key from a terminal. Blocks until the terminal implementation returns a key.

[src]

Handle the incoming key press. Pass the lambda that will match the commands for autocomplete or execution.