OpenCore
1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ConsoleUtils.c
Go to the documentation of this file.
1
8
#include <Uefi.h>
9
#include <Library/BaseLib.h>
10
#include <Library/UefiBootServicesTableLib.h>
11
12
VOID
13
OcConsoleFlush
(
14
VOID
15
)
16
{
17
EFI_STATUS Status;
18
EFI_INPUT_KEY EfiKey;
19
20
do
{
21
Status =
gST
->ConIn->ReadKeyStroke (
gST
->ConIn, &EfiKey);
22
}
while
(!EFI_ERROR (Status));
23
24
//
25
// This one is required on APTIO IV after holding OPT key.
26
// Interestingly it does not help adding this after OPT key handling.
27
//
28
gST
->ConIn->Reset (
gST
->ConIn, FALSE);
29
}
OcConsoleFlush
VOID OcConsoleFlush(VOID)
Definition
ConsoleUtils.c:13
gST
EFI_SYSTEM_TABLE * gST
Definition
OcBootServicesTableLib.c:28
Library
OcMiscLib
ConsoleUtils.c
Generated by
1.12.0