Table of Contents

Class FakeConsoleInput

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

Fake console input for testing that can return predefined input or wait indefinitely.

public class FakeConsoleInput : ConsoleInput<ConsoleKeyInfo>, IConsoleInput<ConsoleKeyInfo>, IDisposable
Inheritance
FakeConsoleInput
Implements
Inherited Members

Constructors

FakeConsoleInput(ConcurrentQueue<ConsoleKeyInfo>?)

Creates a new FakeConsoleInput with optional predefined input.

Methods

Peek()

When implemented in a derived class, returns true if there is data available to read from console.

Read()

Returns the available data without blocking, called when Peek() returns true.