Skip to content

RemoteTerminal

One terminal connection. Output is UTF-8 text containing VT sequences.

public sealed class RemoteTerminal : IAsyncDisposable

Closes the remote session without stopping the server process.

public ValueTask DisposeAsync()

ValueTask

Sends text or VT input.

public Task InputAsync(string text, CancellationToken cancellationToken = default)

Task

Interrupts the remote command.

public Task InterruptAsync(CancellationToken cancellationToken = default)

Task

Changes the remote terminal size.

public Task ResizeAsync(int columns, int rows, CancellationToken cancellationToken = default)

Task

Gets the remote exit code, or a transport failure if the connection was lost.

public Task<int> Completion { get; }

Task<int>

Gets terminal output in arrival order. A slow consumer disconnects rather than losing text.

public ChannelReader<string> Output { get; }

ChannelReader<string>