From ff43174663ef3eabb25d672d874500dc228a9b49 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 11 Apr 2011 15:23:05 -0700 Subject: [PATCH] menu: clear the timeout line on MENU HIDDENKEY Signed-off-by: H. Peter Anvin --- com32/menu/menumain.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c index df1eb18..5b3f6bd 100644 --- a/com32/menu/menumain.c +++ b/com32/menu/menumain.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * * * Copyright 2004-2008 H. Peter Anvin - All Rights Reserved - * Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin + * Copyright 2009-2011 Intel Corporation; author: H. Peter Anvin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -726,8 +726,11 @@ static const char *do_hidden_menu(void) this_timeout = min(timeout_left, CLK_TCK); key = mygetkey(this_timeout); - if (key != KEY_NONE) + if (key != KEY_NONE) { + /* Clear the message from the screen */ + print_timeout_message(0, HIDDEN_ROW, ""); return hide_key[key]; /* NULL if no MENU HIDEKEY in effect */ + } timeout_left -= this_timeout; } -- 2.7.4