Table of Contents

Interface IWindowSizeProvider

Namespace
Repl
Assembly
Repl.Core.dll

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

public interface IWindowSizeProvider

Methods

GetSizeAsync(CancellationToken)

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

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

Parameters

ct CancellationToken

Returns

ValueTask<(int Width, int Height)?>

Events

SizeChanged

Raised when the terminal window is resized.

event EventHandler<WindowSizeEventArgs>? SizeChanged

Event Type

EventHandler<WindowSizeEventArgs>