Displaying 20 results from an estimated 34 matches for "menumain".
2010 May 30
1
[RFC PATCH] menu: support single key booting
If MENU COMMIT is specified for a label, execute it automatically
when its hotkey is pressed.
Signed-off-by: Ferenc Wagner <wferi at niif.hu>
---
com32/menu/menu.h | 1 +
com32/menu/menumain.c | 10 ++++++++--
com32/menu/readconfig.c | 6 +++++-
3 files changed, 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 10...
2016 May 12
2
syslinux vs isolinux - com32 serial port output problem
I have a need to display text to COM2 before loading a kernel. The easiest way to do this was to invade menu.c32 (menumain.c) and add a function to send the string out to the serial port just before the selected menu "label" is executed. In menumain.c, my function is called just before 'if (cmdline)'.
The code I wrote to initialize the hardware and send individual characters to COM2 works as expecte...
2014 Nov 22
3
Use z size specifier for printf-ing size_t variable
...dprintf("Mapping 0x%08x bytes (%#x pad) at 0x%08x\n", len, pad, start);
+ dprintf("Mapping 0x%08zx bytes (%#x pad) at 0x%08x\n", len, pad, start);
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...
2016 May 12
3
syslinux vs isolinux - com32 serial port output problem
On Thu, May 12, 2016 at 06:16:46PM +0200, Good Old Idea via Syslinux wrote:
> On Thu, May 12, 2016 at 02:29:52PM +0000, Janz, Burt via Syslinux wrote:
> > I have a need to display text to COM2 before loading a kernel.
> > The easiest way to do this was to invade menu.c32 (menumain.c) and
> > add a function to send the string out to the serial port just before
> > the selected menu "label" is executed. In menumain.c, my function is
> > called just before 'if (cmdline)'.
> >
> >
> > The code I wrote to initialize the hard...
2019 Apr 17
1
Fix: hotkey uppercasing too wide
...ng 2 activates this entry
# pressing CTRL-R activates this entry (prior to fix below)
LABEL extradollar
MENU LABEL ^$. Dollar
# pressing $ activates this entry
# 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 &=...
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
...08x bytes (%#x pad) at 0x%08x\n", len, pad, start);
> + dprintf("Mapping 0x%08zx bytes (%#x pad) at 0x%08x\n", len, pad, start);
>
> 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');...
2007 Mar 15
1
my_isspace can be isblank
...@@
void parse_configs(char **argv);
extern int (*draw_background)(const char *filename);
-static inline int my_isspace(char c)
-{
- return (unsigned char)c <= ' ';
-}
-
int menu_main(int argc, char *argv[]);
void console_prepare(void);
void console_cleanup(void);
--- com32/modules/menumain.c
//depot/opensource/main/syslinux-3/com32/modules/menumain.c#2
+++ com32/modules/menumain.c 07-03-15 16:26:57
@@ -30,6 +30,7 @@
#include <sha1.h>
#include <base64.h>
#include <colortbl.h>
+#include <ctype.h>
#ifdef __COM32__
#include <com32.h>
#endif
@@ -483,10...
2008 Jan 09
2
MENU / SHA1 passwords not working.
Hi. I'm having a problem with hashing passwords for use in the menu.
If I specify plain passwords in my config it works file:
Example:
MENU MASTER PASSWD 1234567890
MENU PASSWD test123
However if I hash a password using the sha1pass script the resulting hashes
don't work.
MENU MASTER PASSWD $4$9qj4qv8g$HQ6Jl6TVrpign78XeofX2OLmfJo$
MENU PASSWD test123
2016 May 12
0
syslinux vs isolinux - com32 serial port output problem
On Thu, May 12, 2016 at 02:29:52PM +0000, Janz, Burt via Syslinux wrote:
> I have a need to display text to COM2 before loading a kernel.
> The easiest way to do this was to invade menu.c32 (menumain.c) and
> add a function to send the string out to the serial port just before
> the selected menu "label" is executed. In menumain.c, my function is
> called just before 'if (cmdline)'.
>
>
> The code I wrote to initialize the hardware and send individual
>...
2007 Oct 01
1
Patch to vesamenu.c32 from Syslinux 3.51
...g displayed
image and/or make it appear as though the system is hung while the
underlying kernel starts. This patch changes the video mode back to a
text mode before launching the kernel allowing the display to properly
render for those apps that don't set the display mode before writing:
--- menumain.orig 2007-09-27 16:27:45.000000000 -0700
+++ menumain.c 2007-09-27 16:27:30.000000000 -0700
@@ -1036,6 +1036,8 @@
} else {
if (type < KT_KERNEL)
type = KT_KERNEL;
+ ireg.eax.w[0]= 0x0003; /* Return to text mode */
+ __intcall(0x10, &ireg, NULL);
ireg.eax.w[0]...
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, top, 0, 0);...
2011 Mar 23
2
Problems with recompiling vesamenu.c32
...es F12 in 5 seconds.
So I tried using the hidden function of the menu with the timeout option and
it works great but the only problem that remains is that any key press will
unlock the menu and I want it to be a specific key
I went to the code and found the function do_hidden_menu in the file
menumain.
I changed only the line which check's what key was pressed and re compiled
but when I used the new vesamenu.c32 that was created the menu didn?t load
at all, the computer got stuck after the loading of the default config file
My compiling environment is fedora 14 live cd with the latest gc...
2009 Jul 27
1
[PATCH] mboot using module path
...menu miscellanous glitch
correct small glitch when displaying the command ([TAB]) that is very long.
The glitch is that it displays the same chunks of the command line twice.
signed-off-by: Damien Nozay <damien /dot nozay /at gmail.com>
---
diff -u -r -X nodiff syslinux-3.82-orig/com32/menu/menumain.c
syslinux-3.82/com32/menu/menumain.c
--- syslinux-3.82-orig/com32/menu/menumain.c??? 2009-06-09
10:19:25.000000000 -0700
+++ syslinux-3.82/com32/menu/menumain.c??? 2009-07-15 11:18:42.000000000 -0700
@@ -448,8 +448,8 @@
?????? /* Redraw the command line */
?????? printf("\033[?25l\033[%d;1H\1...
2010 Apr 23
1
Path simple menu integrated progress indicator
..._HELPMSG_ROW]+VSHIFT)
+#define HELPMSGEND_ROW (cm->mparm[P_HELPMSGEND_ROW])
+#define HSHIFT (cm->mparm[P_HSHIFT])
+#define VSHIFT (cm->mparm[P_VSHIFT])
+#define HIDDEN_ROW (cm->mparm[P_HIDDEN_ROW])
+
+
#endif /* MENU_H */
diff -uprN syslinux-3.86-vanilla//com32/menu/menumain.c syslinux-3.86/com32/menu/menumain.c
--- syslinux-3.86-vanilla//com32/menu/menumain.c 2010-03-31 11:24:25.000000000 -0500
+++ syslinux-3.86/com32/menu/menumain.c 2010-04-15 13:08:03.000000000 -0500
@@ -29,11 +29,13 @@
#include <limits.h>
#include <com32.h>
#include <syslin...
2019 Apr 11
3
RFC: Feature: MENU HIDDEN behaviour on ANY key
...sc, HIDDENKEY ANY (without commands): Esc brings the menu, all keys autoboot
HIDDENMENUKEY Esc, no HIDDENKEY ANY: Esc brings the menu, all keys trigger nothing.
*Exclusion*
No similar support for boot prompt.
No code/behaviour analysis made for cmenu.c32
*Affected code* (outside config parsing)
menumain.c:do_hidden_menu()
Extra comparison when handling mygetkey(),ignoring unbound key if ANY not assigned (or defaulted). Return NULL, if hide_key[key] matches HIDDENMENUKEY. A few extra globals likely required to track/reference pseudo-commands "reveal menu" and "boot default" insi...
2011 Mar 09
14
[PATCH 00/12] elflink shrinkage
...k/ldlinux}/refstr.c | 0
{core/elflink => com32/elflink/ldlinux}/refstr.h | 0
com32/elflink/modules/Makefile | 4 +-
com32/elflink/modules/cli.h | 6 +-
com32/elflink/modules/menu.h | 17 --
com32/elflink/modules/menumain.c | 6 +-
com32/elflink/modules/test.c | 7 +-
com32/include/sys/module.h | 2 +-
com32/lib/sys/module/elf_module.c | 3 +-
com32/lib/sys/module/exec.c | 35 +++-
com32/lib/vdprintf...
2016 May 12
0
syslinux vs isolinux - com32 serial port output problem
...t media. For that matter, the BIOS even says "Boot from CD" and displays the isolinux-debug.bin messages before the menu appears - but only when booting from CD.
The problem manifests itself as a failure to send characters to COM2 only when booting the CD.
If you look inside com32/menu/menumain.c right near the bottom of the file, you'll see "if (cmdline)" IIUC that's where the fully formatted command line is handed off from the menu to "execute()". I added a "send_rdu_message()" function directly before "if (cmdline)".
My "send_rdu_m...
2009 May 24
0
menu: alternative config file
...llows one to specify an alternative config file and it's also possible to
specify more than one file. menu.txt got
"If you specify more than one file, they will all be read, in the order specified."
What is the desired failure mode if one of those files doesn't exist?
com32/menu/menumain.c calls parse_configs() which itself calls parse_one_config (readconfig.c).
parse_one_config() returns -1 if the specified config file is not available, but the return code is not
checked in parse_configs(). The current failure mode is therefore "ignore". If this is by design it might
be...
2009 Aug 17
1
[menu] Bug: 'cm' is used before it is initialized
...roblem on syslinux 3.82 and I believe the problem exists in some previous versions. I've tried syslinux 3.54 which doesn't have the following code and it manage to show the menu correctly. Sample of the menu configuration file I used: http://clonezilla.org/.
Code: menu_main(), .\com32\menu\menumain.c
------------------------------------------
.
.
.
? if ( !cm->nentries ) { <--------------------------- cm is NULL
??? fputs("Initial menu has no LABEL entries!\n", stdout);
??? return 1;??? ??? ??? /* Error! */
? }
? cm = start_menu; <---------------------- cm is initial...