[syslinux:master] menu: clear the timeout line on MENU HIDDENKEY
syslinux-bot for H. Peter Anvin
hpa at linux.intel.com
Mon Apr 18 13:54:18 PDT 2011
Commit-ID: ff43174663ef3eabb25d672d874500dc228a9b49
Gitweb: http://syslinux.zytor.com/commit/ff43174663ef3eabb25d672d874500dc228a9b49
Author: H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Mon, 11 Apr 2011 15:23:05 -0700
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Mon, 11 Apr 2011 15:23:05 -0700
menu: clear the timeout line on MENU HIDDENKEY
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>
---
com32/menu/menumain.c | 7 +++++--
1 files 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;
}
More information about the Syslinux-commits
mailing list