Interface
IInputSource
ConsoleMonster.Input
A source of input events: the Windows console (WindowsConsoleInput), a VT terminal, the .NET console key reader, or a script (ScriptedInput) in tests and demos. Only one component reads at a time; get the source through ConsoleInput.Acquire, which enforces that.
Usage
Explore 16 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 11
- Property HeadlessTerminal.Input
- Method ConsoleInput.OpenConsole
- Property ConsoleInput.Override
- Property InputLease.Source
- Property InteractiveOptions.Input
- Property LogTailOptions.Input
- Property ConsoleTarget.Input
- Property ITerminalTarget.Input
- Property NullTarget.Input
- Property RecordingTarget.Input
- Property WriterTarget.Input
Accepted by parameters 5
- Method ConsoleInput.Acquire
- Extension method InteractiveOptions.Input
- Method InteractiveOptionsFluent.Input
- Extension method LogTailOptions.Input
- Method LogTailOptionsFluent.Input
Methods
public abstract InputEvent? Read(TimeSpan timeout, CancellationToken cancellationToken) #Waits up to timeout for the next event.
Parameters
- timeout System.TimeSpan
- The longest wait; TimeSpan.Zero polls.
- cancellationToken System.Threading.CancellationToken
- Cancels the wait with OperationCanceledException.
Exceptions
InputClosedException– The input ended (end of a script, closed stdin).
Properties
public abstract string Name { get; } #A short description for diagnostics, for example windows console (ReadConsoleInputW).