You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single-line text input with readline-style editing, history, selection, clipboard, and tab completion.
Overview
PromptControl provides a labeled text input field with rich editing capabilities including cursor navigation, word-level operations, text selection, clipboard support, command history, and tab completion. Supports password masking, horizontal scrolling, and mouse click-to-cursor.
Properties
Property
Type
Default
Description
Prompt
string?
"> "
Label text displayed before the input area (supports markup)
Input
string
""
Current input text
MaskCharacter
char?
null
Display character for password fields
InputWidth
int?
null
Input field width (auto-computed from available space if null)
Copy/paste works locally and over SSH. The control implements IPasteTarget (paste is single-line:
newlines are flattened to spaces). See Clipboard, Copy & Paste for the OSC 52
remote-clipboard behavior and configuration.
History & Completion
Key
Action
Up Arrow
Previous history entry (when HistoryEnabled)
Down Arrow
Next history entry
Tab
Trigger tab completion (when TabCompleter is set)
Enter
Submit input (fires Entered, adds to history)
Escape
Clear focus
Mouse Support
Action
Result
Click
Focus control and position cursor at clicked character
Tab Completion
Set a TabCompleter delegate that returns completion candidates: