[SeaBIOS] [PATCH v2 5/6] boot: wait for key release before continuing boot

Paolo Bonzini pbonzini at redhat.com
Wed Oct 17 18:23:47 CEST 2012


Ensure that SeaBIOS eats the key corresponding to the menu entry,
even the user keeps it pressed for a while.

Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
---
 src/boot.c | 6 +++++-
 1 file modificato, 5 inserzioni(+). 1 rimozione(-)

diff --git a/src/boot.c b/src/boot.c
index e3bdd7b..c136ad4 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -456,8 +456,12 @@ interactive_bootmenu(void)
     }
 
     default:
-        break;
+        return;
     }
+
+    while (get_keystroke(0) >= 0)
+        ;
+
 }
 
 // BEV (Boot Execution Vector) list
-- 
1.7.12.1





More information about the SeaBIOS mailing list