diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-03 16:05:59 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-03 16:05:59 -0800 |
commit | cf31931a1afe86c9d3f0871d0ba82d1d788b4774 (patch) | |
tree | 0af4e246ae9a05da06c055b84cdc63dd9a6e117a /com32/menu/readconfig.c | |
parent | 8276fe64e083725e406d48c596e4a43cb5927daa (diff) | |
download | syslinux-cf31931a1afe86c9d3f0871d0ba82d1d788b4774.tar.gz syslinux-cf31931a1afe86c9d3f0871d0ba82d1d788b4774.tar.xz syslinux-cf31931a1afe86c9d3f0871d0ba82d1d788b4774.zip |
menu: add MENU CLEAR option
Add MENU CLEAR to clear the screen on menu exit.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu/readconfig.c')
-rw-r--r-- | com32/menu/readconfig.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c index a248721e..d4c8848c 100644 --- a/com32/menu/readconfig.c +++ b/com32/menu/readconfig.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * * * Copyright 2004-2009 H. Peter Anvin - All Rights Reserved - * Copyright 2009 Intel Corporation; author: H. Peter Anvin + * Copyright 2009-2010 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 @@ -34,6 +34,7 @@ struct menu *root_menu, *start_menu, *hide_menu, *menu_list; /* These are global parameters regardless of which menu we're displaying */ int shiftkey = 0; /* Only display menu if shift key pressed */ int hiddenmenu = 0; +int clearmenu = 0; long long totaltimeout = 0; /* Keep track of global default */ @@ -690,6 +691,8 @@ static void parse_config_file(FILE * f) m->menu_background = refdup_word(&p); } else if ((ep = looking_at(p, "hidden"))) { hiddenmenu = 1; + } else if ((ep = looking_at(p, "clear"))) { + clearmenu = 1; } else if ((ep = is_message_name(p, &msgnr))) { refstr_put(m->messages[msgnr]); m->messages[msgnr] = refstrdup(skipspace(ep)); |