Table of Contents

Class ConsoleInputSource

Namespace
MiniTui
Assembly
MiniTui.dll

Reads keys from Console. This was the default before 1.1; TerminalInputSource is now.

public sealed class ConsoleInputSource : IInputSource, IDisposable
Inheritance
ConsoleInputSource
Implements
Inherited Members

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

TryRead(out ConsoleKeyInfo)

Read a key if one is available. Never blocks.

public bool TryRead(out ConsoleKeyInfo key)

Parameters

key ConsoleKeyInfo

Returns

bool