Table of Contents

Interface IKeyConverter<TInputRecord>

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

Interface for subcomponent of a InputProcessorImpl<TInputRecord> which can translate the raw console input type T (which typically varies by driver) to the shared Terminal.Gui Key class.

public interface IKeyConverter<TInputRecord>

Type Parameters

TInputRecord

Methods

ToKey(TInputRecord)

Converts the native keyboard info type into the Key class used by Terminal.Gui views.

ToKeyInfo(Key)

Converts a Key into the native keyboard info type. Should be used for simulating key presses in unit tests.