namespace Terminal.Gui.Drivers; /// /// Interface for subcomponent of a which /// can translate the raw console input type T (which typically varies by /// driver) to the shared Terminal.Gui class. /// /// public interface IKeyConverter { /// /// Converts the native keyboard info type into /// the class used by Terminal.Gui views. /// /// /// Key ToKey (TInputRecord keyInfo); /// /// Converts a into the native keyboard info type. Should be used for simulating /// key presses in unit tests. /// /// /// TInputRecord ToKeyInfo (Key key); }