Expand description
Cursor-aware single-line/multi-line text input model.
Wraps a String with a grapheme-cluster index cursor so that text can
be inserted and deleted at an arbitrary point, not just appended. All public
operations keep the cursor within bounds (0..=grapheme_count).
A grapheme cluster is a user-perceived character, specifically a base codepoint
plus any combining marks, zero-width joiners, and other sequence constituents.
By indexing the cursor in grapheme clusters, cursor movement, backspace,
delete, and transpose all operate on what the user sees as a single
character, even when that character is composed of multiple Rust chars.
Modules§
- history
- Workspace-local prompt history persistence.
Structs§
- Prompt
Input - A cursor-aware text buffer used for the prompt input line.