ReadLineAsync(TerminalReadLineOptions?, CancellationToken) Method

Definition

Assembly XenoAtom.Terminal.dll

Reads a line of text from the terminal using terminal input events.

[NullableContext((byte)2)]
[AsyncStateMachine(typeof(TerminalInstance. < ReadLineAsync > d__236))]
public ValueTask<string?> ReadLineAsync(TerminalReadLineOptions? options = null, CancellationToken cancellationToken = default(CancellationToken))

Parameters

options
TerminalReadLineOptions

Optional read options.

cancellationToken
CancellationToken

A cancellation token.

Returns

ValueTask<String>
The line read from the terminal, or null if input completed.