Add "TtyTerm" terminal type to TerminalDxe
This patch a adds new terminal type, TtyTerm, to TerminalDxe. This terminal type provides a place to add support for various *nix terminals that don't behave like standard VT terminals. The goal is to 'just work' with as many terminals as possible, rather than properly emulating any one specific terminal. Signed-off-by: Roy Franz <roy.franz@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17895 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -454,6 +454,7 @@ TranslateRawDataToEfiKey (
|
||||
case PCANSITYPE:
|
||||
case VT100TYPE:
|
||||
case VT100PLUSTYPE:
|
||||
case TTYTERMTYPE:
|
||||
AnsiRawDataToUnicode (TerminalDevice);
|
||||
UnicodeToEfiKey (TerminalDevice);
|
||||
break;
|
||||
@@ -1393,7 +1394,8 @@ UnicodeToEfiKey (
|
||||
if (TerminalDevice->TerminalType == PCANSITYPE ||
|
||||
TerminalDevice->TerminalType == VT100TYPE ||
|
||||
TerminalDevice->TerminalType == VT100PLUSTYPE ||
|
||||
TerminalDevice->TerminalType == VTUTF8TYPE) {
|
||||
TerminalDevice->TerminalType == VTUTF8TYPE ||
|
||||
TerminalDevice->TerminalType == TTYTERMTYPE) {
|
||||
switch (UnicodeChar) {
|
||||
case 'A':
|
||||
Key.ScanCode = SCAN_UP;
|
||||
|
Reference in New Issue
Block a user