[NullableContext((byte)1)]
[Nullable((byte)0)]
public sealed class TerminalInstance : IDisposable
kind:method, kind:property, kind:ctor. Press Esc to clear.BackendGets the backend used by this terminal instance.BackgroundColorGets or sets the current background color (best effort).BufferWidthGets or sets the buffer width in character cells (best effort).CapabilitiesGets the detected terminal capabilities as reported by the backend.ClipboardGets clipboard operations (best effort).CursorGets cursor-related operations.CursorLeftGets or sets the 0-based cursor column (best effort).ErrorGets a serialized TextWriter for terminal standard error.LargestWindowWidthGets the largest supported window width in character cells (best effort).MarkupStylesGets or sets a dictionary mapping custom markup style tokens (e.g. primary, success) to styles.SizeGets the current terminal size.TitleGets or sets the terminal title (best effort).TreatControlCAsInputGets or sets a value indicating whether Ctrl+C / Ctrl+Break are treated as regular key input (best effort).WindowWidthGets or sets the window width in character cells (best effort).AlternateScreen(Boolean)Enters or leaves the alternate screen buffer (ESC [ ? 1049 h / ESC [ ? 1049 l).ApplyStyle(AnsiStyle)Applies a complete style transition from the current style to the specified style.ClearAllTabStops()Clears all horizontal tab stops (TBC) (ESC [ 3 g).CursorBack(Int32)Emits CSI cursor back (ESC [ n D).CursorBackTab(Int32)Moves the cursor to the previous horizontal tab stop (CBT) (ESC [ n Z).CursorBlinking(Boolean)Enables or disables the text cursor blinking mode (ATT160) (ESC [ ? 12 h / ESC [ ? 12 l).CursorDown(Int32)Emits CSI cursor down (ESC [ n B).CursorVerticalAbsolute(Int32)Emits CSI line position absolute (ESC [ row d), 1-based.DeleteCharacters(Int32)Emits CSI delete characters (ESC [ n P).DeleteLines(Int32)Emits CSI delete lines (ESC [ n M).EnableBracketedPasteInput()Enables bracketed paste end-to-end: ensures the input loop is running and enables bracketed paste on the backend.EnableMouseInput(TerminalMouseMode)Enables mouse input end-to-end: ensures mouse events are published by the input loop and enables mouse reporting on the backend.EndLink()Ends the current OSC 8 hyperlink (ESC ] 8 ; ; ST).EnterAlternateScreen()Emits the DEC private mode sequence to enter the alternate screen buffer (ESC [ ? 1049 h).EraseCharacters(Int32)Emits CSI erase characters (ESC [ n X).EraseInDisplay(Int32)Emits CSI erase in display (ESC [ n J).EraseLine(Int32)Emits CSI erase in line (ESC [ n K).ExitLineDrawingMode()Exits DEC line drawing mode and restores US-ASCII (G0) (ESC ( B).Flush()Flushes the underlying backend output (best effort).Forward(Int32)Emits CSI cursor forward (ESC [ n C).GetCursorPositionAsync(CancellationToken)Gets the cursor position asynchronously (0-based).GetCursorVisible()Gets the cursor visibility (best effort).GetLargestWindowSize()Gets the largest supported window size in character cells (best effort).GetWindowSize()Gets the current window size in character cells (best effort).HideCursor()Hides the cursor within a scope and restores the previous state when disposed (best effort).HorizontalAndVerticalPosition(Int32, Int32)Emits CSI horizontal and vertical position (ESC [ row ; col f), 1-based.HorizontalTabSet()Sets a horizontal tab stop at the current cursor column (HTS) (ESC H).KeypadNumericMode()Enables keypad numeric mode (DECKPNM) (ESC >).NotifyMarkupStylesChanged()Notifies this instance that MarkupStyles was mutated in-place and cached markup renderers should be rebuilt.PreviousLine(Int32)Emits CSI previous line (ESC [ n F).PrivateMode(Int32, Boolean)Sets or resets a DEC private mode (DECSET/DECRST) (ESC [ ? n h / ESC [ ? n l).ReadEventAsync(CancellationToken)Reads the next event asynchronously.ReadEventsAsync(CancellationToken)Reads terminal input events as an async stream.ReadKey(TerminalReadKeyOptions?)Reads the next key from the default input stream.ReadKeyAsync(TerminalReadKeyOptions?, CancellationToken)Reads the next key from the default input stream.ReadLineAsync(TerminalReadLineOptions?, CancellationToken)Reads a line of text from the terminal using terminal input events.RequestCursorPosition()Requests the cursor position report (DECXCPR) (ESC [ 6 n).ResetScrollRegion()Resets the scrolling region (DECSTBM) (ESC [ r).RestoreCursorPosition()Emits CSI restore cursor position (ESC [ u).ReverseIndex()Emits reverse index (RI) (ESC M).SaveCursorPosition()Emits CSI save cursor position (ESC [ s).ScrollDown(Int32)Emits CSI scroll down (ESC [ n T).SetBufferSize(TerminalSize)Sets the buffer size in character cells (best effort).SetCursorPosition(Int32, Int32)Sets the cursor position (0-based).SetInputEcho(Boolean)Enables or disables input echo within a scope and restores the previous state when disposed (best effort).SetMarkupStyle(String, AnsiStyle)Updates or adds a custom markup style token and invalidates cached markup renderers.SetPaletteColor(Int32, Byte, Byte, Byte)Modifies a palette color entry (OSC 4) (ESC ] 4 ; i ; rgb:rr/gg/bb ST).ShowCursor(Boolean)Emits the DEC private mode sequence to show or hide the cursor (ESC [ ? 25 h / ESC [ ? 25 l).StartInput(TerminalInputOptions?)Starts the input loop (idempotent).TryGetCursorPositionAsync(Nullable<TimeSpan>, CancellationToken)Tries to get the cursor position asynchronously (0-based).Undecorate(AnsiDecorations)Disables the specified decoration flags (SGR).Up(Int32)Emits CSI cursor up (ESC [ n A).UseCursorPosition()Saves the current cursor position and restores it when disposed (best effort).UseRawMode(TerminalRawModeKind)Enables raw/cbreak mode within a scope and restores the previous mode when disposed.WindowTitle(ReadOnlySpan<Char>)Sets the window title (OSC 2) (ESC ] 2 ; string ST).Write(String)Writes text to the terminal output.WriteAtomic(Action<TextWriter>)Ensures multiple text writes are not interleaved with other terminal output.WriteKeyEvent(AnsiKeyEvent, Boolean)Writes a common key input sequence (Windows Console VT / xterm conventions).WriteLine(String?)Writes a line terminator, or writes text followed by a line terminator.WriteMarkup(String)Writes markup text using AnsiMarkup.WriteMarkup(ref AnsiMarkupInterpolatedStringHandler)Writes markup text built using an interpolated string handler.WriteMarkupLine(ref AnsiMarkupInterpolatedStringHandler)Writes markup text built using an interpolated string handler followed by a line terminator.WriteSs3(Char)Writes an SS3 sequence (ESC O final).