scoop:scoop.readline:0.1.0
scoop.readline
API
-
object
AcceptAll
Default validator accepting any input.
-
enum
Anchor
Position of a Vi paste.
-
enum
BellStyle
Selects the feedback used for an unavailable editing operation.
-
struct
Candidate
Completion display text and the exact text inserted into the buffer.
-
enum
ColorMode
Controls ANSI decoration produced by highlighters.
-
enum
Command
Commands accepted by the editing core and custom key bindings.
-
interface
Completer
Supplies completion candidates for the current input.
-
enum
CompletionType
Selects cycling, common-prefix/list completion, or interactive fuzzy selection.
-
struct
Completions
Replaces [start, cursor) with a selected candidate. Positions are scalar indices.
-
class
Config
Immutable editor options. Indices, counts, and dimensions use Long.
- class ConfigBuilder
-
struct
Context
History view passed to extension callbacks.
-
enum
EditMode
Selects the built-in key map.
-
enum
EditResult
Outcome of processing one input event.
-
class
EditingSession
The production editor core, driven by terminal events or application-provided events.
-
class
Editor
A reusable Unix line editor with pluggable history and independent extension callbacks.
-
class
ExternalPrinter
Thread-safe output that preserves the active editor's prompt and input.
-
class
FilenameCompleter
Completes native paths, preserving platform separators, quoting and ~/ prefixes.
-
interface
Highlighter
ANSI styling must preserve the original visible text and width.
-
struct
Hint
A visible suggestion with an optional independently accepted suffix.
-
interface
Hinter
Supplies suggestions without changing the input.
-
class
HistoryHinter
Suggests the newest matching history suffix when the cursor is at the end.
-
class
LineBuffer
A Unicode line buffer whose cursor always lies on an extended-grapheme boundary.
-
class
MatchingBracketHighlighter
Highlights the matching bracket adjacent to the cursor in bold blue.
-
class
MatchingBracketValidator
Validates balanced (), [] and {}, without imposing a programming-language lexer.
-
enum
Movement
A cursor motion or edit range. Counts must be nonnegative.
-
object
NoCompleter
Default completion provider with no candidates.
-
object
NoHinter
Default hint provider.
-
object
PlainHighlighter
Default identity highlighter.
-
class
ReadlineEofException
Signals end of input, including Ctrl-D on an empty buffer.
-
class
ReadlineInterruptedException
Signals Ctrl-C without treating it as an accepted line.
-
struct
RenderedLine
A viewport of ANSI-decorated rows with a zero-based cursor position.
-
enum
ValidationResult
Determines whether Enter accepts, rejects, or continues a multiline input.
-
interface
Validator
Input validation invoked on acceptance.
-
enum
ViMode
Current Vi editing state.
-
enum
Word
Word boundaries used by the Emacs and Vi maps.
-
enum
WordEnd
Destination relative to a word.
- function copy
-
function
readlineConfig
Configures one complete value; execution remains explicit.
-
function
renderLine
Computes a terminal viewport without performing I/O.