Controller passed to ReadLine callbacks to inspect and edit the current line.
public sealed class TerminalReadLineController
The controller is only valid during a ReadLine operation. Using it after ReadLine completes throws.
kind:method, kind:property, kind:ctor. Press Esc to clear.HasSelectionGets whether there is an active selection.LengthGets the number of UTF-16 code units in the current text.SelectionStartGets the selection start (UTF-16 code units).TextGets the current text being edited (UTF-16).BeginSelection(Int32)Starts a selection anchor at the specified index (no selection yet).Cancel()Requests canceling the current ReadLine.Clear()Clears the current line.ClearSelection()Clears the selection.Insert(ReadOnlySpan<Char>)Inserts text at the current cursor position (replaces selection if any).Remove(Int32, Int32)Removes a range of characters.