search for: menu_entry

Displaying 20 results from an estimated 29 matches for "menu_entry".

2011 Apr 01
1
[GIT PULL] elflink ldlinux
The following changes since commit 8c576f1fe03e34879921311f46613a35c6530000: Merge remote-tracking branch 'mfleming/for-hpa/elflink/fix-compiler-warnings' into elflink (2011-03-16 12:53:58 -0700) are available in the git repository at: git://git.zytor.com/users/mfleming/syslinux.git for-hpa/elflink/ldlinux Matt Fleming (1): ldlinux: Perform auto-boot if NOESCAPE set in config
2019 Apr 26
1
Fix: menu indent for menu entry
...menu. And with mix of tag, title, label. Regards, Dany *Patch* --- syslinux-6.03/com32/menu/readconfig.c.orig 2019-04-26 13:22:46.817379317 -0500 +++ syslinux-6.03/com32/menu/readconfig.c 2019-04-26 14:12:26.085625360 -0500 @@ -319,6 +319,15 @@ static void record(struct menu *m, struc struct menu_entry *me; const struct syslinux_ipappend_strings *ipappend; + /* Handle indentation of item with sub-menu while there's no item yet */ + if (m->parent_entry && m->nentries == 0 && ld->menuindent) { + const char *dn; + + rsprintf(&dn, "%*s%s", ld-&g...
2010 May 30
1
[RFC PATCH] menu: support single key booting
..., 14 insertions(+), 3 deletions(-) As mentioned on IRC, people ask for this. So here's something to talk about. Like the variable names... diff --git a/com32/menu/menu.h b/com32/menu/menu.h index 1e596e1..856c368 100644 --- a/com32/menu/menu.h +++ b/com32/menu/menu.h @@ -64,6 +64,7 @@ struct menu_entry { enum menu_action action; unsigned char hotkey; bool save; /* Save this entry if selected */ + 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....
2019 Apr 16
1
Fix: menu immediate for submenu
...ian. Regards Dany *Sample config* # hot keys: S,1,2 are immediate (screen flash), but not E MENU IMMEDIATE LABEL standard MENU LABEL ^Standard MENU BEGIN MENU LABEL ^Extra LABEL extra1 MENU LABEL ^1. One LABEL extra2 MENU LABEL ^2. Two MENU END # end-of-config *Code analysis* The 'menu_entry' associated with a label inherits the 'immediate' flag of the parent 'menu' [record()] unless overridden for the label. The sub 'menu' inherits the 'immediate' flag of the parent 'menu' [new_menu()]. But the 'menu_entry' associated with a sub-menu...
2005 Aug 27
3
SYSLINUX 3.11-pre5 -- release candidate -- release on Tuesday
SYSLINUX 3.11-pre5 is hereby a bug fix release candidate. If I don't receive any problem reports, I will release it as-is on Tuesday, August 30. http://www.kernel.org/pub/linux/utils/boot/syslinux/Testing/ -hpa
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 01
0
[GIT PULL] elflink cmdline
...const struct menu_parameter mparm[NPARAMS] = { [P_WIDTH] = {"width", 0}, @@ -420,6 +421,17 @@ static struct menu *end_submenu(void) return current_menu->parent ? current_menu->parent : current_menu; } +void print_labels(const char *prefix, size_t len) +{ + struct menu_entry *me; + + printf("\n"); + for (me = all_entries; me; me = me->next ) { + if (!strncmp(prefix, me->label, len)) + printf(" %s\n", me->label); + } +} + static struct menu_entry *find_label(const char *str) { const char *p; @@ -606,6 +618,78 @@ static ch...
2014 Nov 22
3
Use z size specifier for printf-ing size_t variable
...if (start + len + pad > mboot_high_water_mark) mboot_high_water_mark = start + len + pad; diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c index b8cb06f..ed72c08 100644 --- a/com32/menu/menumain.c +++ b/com32/menu/menumain.c @@ -230,7 +230,7 @@ static int ask_passwd(const char *menu_entry) for (x = 2; x <= WIDTH - 2 * PASSWD_MARGIN - 1; x++) putchar('q'); - printf("j\017\033[%d;%dH\2#12 %s \033[%d;%dH\2#13", + printf("j\017\033[%d;%zdH\2#12 %s \033[%d;%dH\2#13", PASSWD_ROW, (WIDTH - (strlen(cm->messages[MSG_PASSPROMPT]) + 2)) / 2...
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
2011 Mar 16
0
[GIT PULL] elflink compiler warning fixes
...entries[menu->defentry]->label); - printf("save: %d\n", menu->save); - //printf("", menu->); - //printf("", menu->); - //printf("", menu->); -} - void parse_configs(char **argv) { const char *filename; struct menu *m; struct menu_entry *me; - char *cmdline; dprintf("enter"); empty_string = refstrdup(""); diff --git a/com32/elflink/modules/background.c b/com32/elflink/modules/background.c index 61d8c60..467f6fd 100644 --- a/com32/elflink/modules/background.c +++ b/com32/elflink/modules/background...
2009 Apr 09
0
[PATCH] gfxboot: parse DEFAULT keywork in syslinux config file
The gfxboot COM module currently ignores the DEFAULT entry set in syslinux config file and always default to 0 instead. This patch parses DEFAULT entries in the config file and set the default entry accordingly. Signed-off-by: Christophe Fergeau <cfergeau at mandriva.com> --- modules/gfxboot.asm | 34 ++++++++++++++++++++++++++++++++-- 1 files changed, 32 insertions(+), 2 deletions(-)
2006 Jan 12
1
[3.20pre4] cannot build menu.c32
...cc -m32 -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__ -c -o readconfig.o readconfig.c readconfig.c: In function `unlabel': readconfig.c:198: warning: implicit declaration of function `isspace' readconfig.c:205: error: `menu_entry' undeclared (first use in this function) readconfig.c:205: error: (Each undeclared identifier is reported only once readconfig.c:205: error: for each function it appears in.) make: *** [readconfig.o] Error 1 Cheers Alex
2009 Jul 13
0
[PATCH] gfxboot: change handling of keywords
Makes handling of keywords more flexible. Signed-off-by: Sebastian Herbszt <herbszt at gmx.de> Index: syslinux-3.82-440-g6483c80/modules/gfxboot.asm =================================================================== --- syslinux-3.82-440-g6483c80.orig/modules/gfxboot.asm +++ syslinux-3.82-440-g6483c80/modules/gfxboot.asm @@ -699,33 +699,39 @@ parse_config: mov bx, msg_crlf int 22h
2015 Jul 02
1
boot... round 2
On 02.07.2015 11:10, Thomas Schmitt wrote: > Hi, > > poma wrote: >> - if (c <= ' ' || c == '\x7f') { >> + if (c <= ' ' && c == '\x7f') { > > As Geert Stappers pointed out (and can be verified by a > simple test program), the reinstated term > (c <= ' ' && c == '\x7f') >
2009 Apr 05
3
[PATCH] Gfxboot COMBOOT module
This is the latest version of the gfxboot module. It's supposed to work on all Syslinux derivatives. I am not sure about the copyright notice and would appreciate any input. - Sebastian Index: syslinux-3.74-pre17-2-g2a9ddec/modules/Makefile =================================================================== --- syslinux-3.74-pre17-2-g2a9ddec.orig/modules/Makefile +++
2005 Mar 24
1
Problems with menu.c32, and some feature request for menu.c32
I have found two bugs in the menu.c32 utility, part of the syslinux-3.08-pre5 build, and have a couple of requests. Problem 1: If you use the ^ symbol to define a number as a hotkey, ex. MENU LABEL ^1 Option #1 , the menu will not print the number highlighted. It will use it as a hot key, it just will not highlight it. It does highlight the hotkey if specify a letter, A-Z. Problem 2: When
2016 Jun 29
0
Fwd: [PATCH] {vesa}menu.c32 feature => hide menu entry for specific sources
....03/com32/menu/readconfig.c 2016-05-06 18:37:06.573393370 +0200 @@ -232,6 +232,7 @@ struct labeldata { int save; int immediate; struct menu *submenu; + const char *visiblesource; }; /* Menu currently being parsed */ @@ -318,6 +319,7 @@ static void record(struct menu *m, struc int i; struct menu_entry *me; const struct syslinux_ipappend_strings *ipappend; + const union syslinux_derivative_info *sdi; if (!ld->label) return; /* Nothing defined */ @@ -326,6 +328,34 @@ static void record(struct menu *m, struc if (ld->menuhide) m = hide_menu; + /* if HIDEIFNOT is specified , then s...
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
2015 Jan 25
0
Use z size specifier for printf-ing size_t variable
...ot_high_water_mark) > mboot_high_water_mark = start + len + pad; > diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c > index b8cb06f..ed72c08 100644 > --- a/com32/menu/menumain.c > +++ b/com32/menu/menumain.c > @@ -230,7 +230,7 @@ static int ask_passwd(const char *menu_entry) > for (x = 2; x <= WIDTH - 2 * PASSWD_MARGIN - 1; x++) > putchar('q'); > > - printf("j\017\033[%d;%dH\2#12 %s \033[%d;%dH\2#13", > + printf("j\017\033[%d;%zdH\2#12 %s \033[%d;%dH\2#13", > PASSWD_ROW, (WIDTH - (strlen(cm...
2005 Mar 28
0
Problems with menu.c32,and some feature request for menu.c32
Well in those three days I did identify and correct the problem with using a number (0-9) as the hot key. The following is the section of code in menu.c32 responsible for displaying the menu entries: display_entry(const struct menu_entry *entry, const char *attrib, const char *hotattrib, int width) { const char *p = entry->displayname; while ( width ) { if ( *p ) { if ( *p == '^' ) { p++; /* if ( *p && (unsigned char)*p == entry->hotkey ) { */ fputs(hotattrib, stdout); putchar(*p++...