Flush keyboard buffer out of any keystrokes before waiting for user input
Builds / ExectOS (amd64) (push) Successful in 39s Details
Builds / ExectOS (i686) (push) Successful in 37s Details

This commit is contained in:
Rafal Kupiec 2024-05-05 15:29:20 +02:00
parent 40e0dd8c5e
commit 07d7e06b2b
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ BlDisplayBootMenu()
Events[0] = EfiSystemTable->ConIn->WaitForKey;
Events[1] = TimerEvent;
/* Flush keyboard buffer out of any keystrokes */
EfiSystemTable->ConIn->Reset(EfiSystemTable->ConIn, FALSE);
/* Infinite boot menu event loop */
while(TRUE)
{