Defines the platform-specific backend used by Terminal and TerminalInstance.
[NullableContext((byte)1)]
public interface ITerminalBackend : IDisposable
Implementations should be thread-safe with respect to output serialization and should publish input events without blocking output.
kind:method, kind:property, kind:ctor. Press Esc to clear.IsInputRunningGets a value indicating whether the input loop is currently running.OutGets the writer used for standard output.EnableBracketedPaste()Enables bracketed paste within a scope (best effort).GetLargestWindowSize()Gets the largest possible window size in character cells (best effort).GetSize()Gets the current terminal size.GetWindowSize()Gets the current window size in character cells.HideCursor()Hides the cursor within a scope (best effort).Initialize(TerminalOptions)Initializes the backend.ReadEventAsync(CancellationToken)Reads the next event asynchronously.SetBackgroundColor(AnsiColor)Sets the background color (best effort).SetBufferSize(TerminalSize)Sets the buffer size (best effort).SetCursorPosition(TerminalPosition)Sets the cursor position (0-based).SetCursorVisible(Boolean)Sets the cursor visibility (best effort).SetInputEcho(Boolean)Enables or disables input echo within a scope (best effort).SetTitle(String)Sets the terminal title (best effort).StopInputAsync(CancellationToken)Stops the input loop and disposes any input resources (idempotent).TryGetClipboardText(out String?)Tries to get the current clipboard text (best effort).UseRawMode(TerminalRawModeKind)Enables raw/cbreak input mode within a scope (best effort).