Expand description
Structs§
- Complete
- Tab-completion state: candidates for the token at
start,tailthe text after the cursor that the completion leaves alone, andexpectthe whole line after the last insertion (an edit in between restarts the match). - History
- Prompt history per bucket, newest first.
- Line
Edit - The text of a line prompt and the cursor in it, as a char index.
Enums§
- Edit
- What a key did to the line, or what it asks the front end for.
Constants§
- KNOWN_
BUCKETS - The history buckets, mutt-style: one shared list per input class, named so a persisted file maps back onto them.
Functions§
- byte_at
- Byte offset of the
cursor-th char (the length when past the end). - prompt_
line - A line prompt as it fits
widthcolumns: the label, then the text with the cursor marker (a low bar) in it. When that is wider than the line, the start is cut away behind a<so the cursor stays in view, with a few columns of what follows it.