PromptInput class

The input box at the bottom of the screen, like Claude Code's: a bordered multi-line editor with history, slash-command suggestions and a hint line.

Constructors

PromptInput(Console console, {required List<SlashCommand> commands})

Properties

commands → List<SlashCommand>
final
console → Console
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() → Future<String?>
Reads one message. Returns null when the user exits (Ctrl-C twice or Ctrl-D on an empty line, or the end of piped input).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited