Skip to content

IRemoteTerminalSession

A running terminal owned by one protocol connection.

public interface IRemoteTerminalSession : IAsyncDisposable

Delivers terminal text and control sequences in arrival order.

ValueTask InputAsync(string text, CancellationToken cancellationToken)

ValueTask

Interrupts the active command without terminating the serving process.

ValueTask InterruptAsync(CancellationToken cancellationToken)

ValueTask

Updates the terminal dimensions.

ValueTask ResizeAsync(int columns, int rows, CancellationToken cancellationToken)

ValueTask

Gets the session’s eventual exit code.

Task<int> Completion { get; }

Task<int>