Table of Contents

Method EncodeKeyCharForVKPacket

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

EncodeKeyCharForVKPacket(ConsoleKeyInfo)

Encode the KeyChar with the Key if the first a byte length, otherwise only the KeyChar is considered and searched on the database.

public static char EncodeKeyCharForVKPacket(ConsoleKeyInfo consoleKeyInfo)

Parameters

consoleKeyInfo ConsoleKeyInfo

The console key info.

Returns

char

The encoded KeyChar with the Key if both can be shifted, otherwise only the KeyChar.

Remarks

This is useful to use with the Packet.