search for: run_menu

Displaying 7 results from an estimated 7 matches for "run_menu".

2010 May 30
1
[RFC PATCH] menu: support single key booting
...+ bool commit; /* Commit if selected by hotkey */ }; static inline bool is_disabled(struct menu_entry *me) diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c index 0c39264..3be1bd4 100644 --- a/com32/menu/menumain.c +++ b/com32/menu/menumain.c @@ -746,6 +746,7 @@ static const char *run_menu(void) { int key; int done = 0; + int hotkey = 0; volatile int entry = cm->curentry; int prev_entry = -1; volatile int top = cm->curtop; @@ -854,7 +855,12 @@ static const char *run_menu(void) } this_timeout = min(min(key_timeout, timeout_left), (clock_t) CLK_...
2009 Jun 13
1
menu system behaviour with empty config file
The behaviour of the menu system is odd when an empty / not existing config file is specified: the screen is cleared but not even the menu frame is displayed. It seems to be a problem with run_menu() from menumain.c: if (top != prev_top) { draw_menu(entry, top, 1); display_help(me->helptext); } else if (entry != prev_entry) { draw_row(prev_entry - top + 4 + VSHIFT, entry, top, 0, 0); draw_row(entry - top + 4 + VSHIFT, entry,...
2019 Apr 17
1
Fix: hotkey uppercasing too wide
...pressing CTRL-D activates this entry (prior to fix below) *Patch* # Sorry for the crypto one-liners --- syslinux-6.03/com32/menu/menumain.c.orig 2014-10-06 11:27:44.000000000 -0500 +++ syslinux-6.03/com32/menu/menumain.c 2019-04-17 12:11:41.677824723 -0500 @@ -1081,7 +1081,7 @@ static const char *run_menu(void) break; default: if (key > 0 && key < 0xFF) { - key &= ~0x20; /* Upper case */ + key &= ((key & 0xE0) == 0x60 ? ~0x20 : 0xFF); /* Upper case */ if (cm->menu_hotkeys[key]) { key_timeout = 0; entry = cm->menu_hotkeys[key]->entry...
2006 Jan 12
1
[3.20pre4] cannot build menu.c32
Hi! I have just tried to build menu.c32 but it fails. 3.20pre3 works fine though. Here is what happens: bash-3.1$ make gcc -m32 -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__ -c -o menu.o menu.c menu.c: In function `run_menu': menu.c:549: warning: variable `done' might be clobbered by `longjmp' or `vfork' menu.c:551: warning: variable `top' might be clobbered by `longjmp' or `vfork' menu.c:551: warning: variable `prev_top' might be clobbered by `longjmp' or `vfork' menu.c:552:...
2012 Sep 05
4
Final line of menu selectable even if it is disabled
I have a menu conf as follows: LABEL enabled, use as item LABEL disabled, use as description SEPARATOR LABEL enabled, use as item LABEL disabled, use as description In this situation, I expect the cursors to be able to select from only the two enabled lines. However, the final disabled line is also selectable. Even if I put a final separator and/or disabled label the final line of the menu
2011 Mar 09
14
[PATCH 00/12] elflink shrinkage
From: Matt Fleming <matt.fleming at linux.intel.com> This is a series of patches that, * shrink the core by moving things into an ldlinux ELF module * begin wiring up some of the C versions of various functions The core now only contains essential code and loads the ldlinux module to do everything else, like providing a command line interface and loading kernels. The config file parsing
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com> This series fixes some bugs and switches the elflink branch to be entirely ELF modules. It applies on top of, http://syslinux.zytor.com/archives/2011-April/016369.html The deletions in the diff stat below are mainly from deleting com32/elflink/modules (finally!). Now there should be no duplicate code because we don't need COM32 and