Skip to content

IWindowSizeProvider

Provides terminal window size detection and change notifications. Implementations are transport-specific (DTTERM in-band VT, Telnet NAWS, SSH channel, etc.).

public interface IWindowSizeProvider

Detects the current window size. Returns null if the size cannot be determined.

ValueTask<(int Width, int Height)?> GetSizeAsync(CancellationToken ct)

ValueTask<(int Width, int Height)?>

Raised when the terminal window is resized.

event EventHandler<WindowSizeEventArgs>? SizeChanged

EventHandler<WindowSizeEventArgs>