25 IN EFI_HANDLE ImageHandle,
26 IN EFI_SYSTEM_TABLE *SystemTable
33 STATIC CHAR16 Output[] = L
"Received symbol: \r\n";
39 gBS->WaitForEvent (1, &
gST->ConIn->WaitForKey, &EventIndex);
41 Status =
gST->ConIn->ReadKeyStroke (
gST->ConIn, &Key);
42 if (EFI_ERROR (Status)) {
43 if (Status == EFI_NOT_READY) {
50 Output[
ARRAY_SIZE (Output) - 4] = Key.UnicodeChar;
51 gST->ConOut->OutputString (
gST->ConOut, Output);
52 DEBUG ((DEBUG_INFO,
"KKT: Received %X %X\n", Key.ScanCode, Key.UnicodeChar));