IWindowSizeProvider
Provides terminal window size detection and change notifications. Implementations are transport-specific (DTTERM in-band VT, Telnet NAWS, SSH channel, etc.).
- Kind:
Interface - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/IWindowSizeProvider.cs
Signature
Section titled “Signature”public interface IWindowSizeProviderDerived Classes
Section titled “Derived Classes”Methods
Section titled “Methods”GetSizeAsync(CancellationToken)
Section titled “GetSizeAsync(CancellationToken)”Detects the current window size. Returns null if the size cannot be determined.
ValueTask<(int Width, int Height)?> GetSizeAsync(CancellationToken ct)Parameters
Section titled “Parameters”ct(CancellationToken)
Returns
Section titled “Returns”ValueTask<(int Width, int Height)?>
Events
Section titled “Events”SizeChanged
Section titled “SizeChanged”Raised when the terminal window is resized.
event EventHandler<WindowSizeEventArgs>? SizeChangedReturns
Section titled “Returns”EventHandler<WindowSizeEventArgs>