Class InteractiveInput
Interactive readline replacement with ghost-text completions, dropdown menu, command syntax highlighting, clipboard paste detection, and input history. Replaces Console.ReadLine() with a modern terminal editing experience.
[ExcludeFromCodeCoverage]
public sealed class InteractiveInput
- Inheritance
-
InteractiveInput
- Inherited Members
Constructors
InteractiveInput(CompletionProvider)
public InteractiveInput(CompletionProvider completions)
Parameters
completionsCompletionProvider
Properties
VimModeEnabled
When true, use vim-style input editing modes and motions.
public bool VimModeEnabled { get; set; }
Property Value
Methods
ReadLine()
Legacy wrapper that returns a plain string.
public string? ReadLine()
Returns
ReadLineWithAttachments()
Reads a line of input with interactive completions and paste support. Returns null on Ctrl+C or when input is cancelled. Falls back to Console.ReadLine() when stdin is redirected.
public InputResult? ReadLineWithAttachments()
Returns
Events
OnCycleModel
Fires when the user presses Alt+P to cycle models.
public event EventHandler? OnCycleModel
Event Type
OnDoubleEscape
Fires when the user double-taps ESC at an empty prompt.
public event EventHandler? OnDoubleEscape
Event Type
OnToggleExtendedThinking
Fires when the user presses Alt+T to toggle extended thinking.
public event EventHandler? OnToggleExtendedThinking
Event Type
OnTogglePlanMode
Fires when the user presses Shift+Tab to toggle plan mode.
public event EventHandler? OnTogglePlanMode