summaryrefslogtreecommitdiff
path: root/com32/menu
Commit message (Collapse)AuthorAgeFilesLines
* menu: add MENU HELPH. Peter Anvin2010-06-263-0/+32
| | | | | | | Add a feature to display fullscreen help via menu selection entry (inspired by the Debian install disc menus.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Replacing strncpy by strlcpyErwan Velu2010-06-221-1/+1
| | | | | As reported by hpa, strlcpy is safer and could prevent some bugs. So I replaced all strncpy by strlcpy calls.
* MENU IMMEDIATE: hotkeys which do not require Entersyslinux-4.00-pre47H. Peter Anvin2010-05-273-6/+31
| | | | | | | The normal behavior for a hotkey is to jump to a specific menu entry. With MENU IMMEDIATE, it activates the menu entry as well. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* readconfig.c: avoid uninitialized variable warningsH. Peter Anvin2010-05-121-3/+3
| | | | | | -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* menu: add MENU CLEAR optionH. Peter Anvin2010-02-033-1/+8
| | | | | | Add MENU CLEAR to clear the screen on menu exit. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* menu: when running hidden, clear the screen before final bootH. Peter Anvin2010-02-031-5/+17
| | | | | | | Clear away the countdown message before actually running the final boot. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* vesacon: don't display the cursor when doing a quiet bootH. Peter Anvin2009-12-074-0/+13
| | | | | | | | | Don't display the cursor on the graphical screen while doing a quiet boot. When doing a quiet boot we will probably show the graphical screen for a fair bit of time; as a result, we really don't want a completely bogus cursor blob on the bottom of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'softres'H. Peter Anvin2009-12-075-11/+30
|\
| * vesamenu: add MENU RESOLUTION to be able to set nonstandard resH. Peter Anvin2009-12-075-11/+30
| | | | | | | | | | | | | | | | Add a MENU RESOLUTION command to make it possible to set a nonstandard resolution. If the nonstandard resolution is unavailable, we revert to the text mode screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | menu: debugging hooksH. Peter Anvin2009-11-192-0/+7
| | | | | | | | | | | | Add (disabled) debugging hooks to the menu system. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | menu: initialize cm (current menu) before empty checkH. Peter Anvin2009-08-171-1/+2
| | | | | | | | | | | | | | | | | | The empty check in the menu system used "cm", but before "cm" had actually been initialized. Move the "cm" initialization earlier so we do the right thing here. Reported-by: CKSoon <cksoon79@yahoo.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | menu: fix Ctrl-W (word erase) when editing a command lineH. Peter Anvin2009-08-131-1/+1
|/ | | | | | | The Ctrl-W (word erase) key was broken: it would think the command line got longer, not shorter, resulting in havoc. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge commit 'syslinux-3.82'H. Peter Anvin2009-06-091-1/+4
|\ | | | | | | | | | | | | Conflicts: com32/menu/menumain.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * simple menu: make ONTIMEOUT work with MENU HIDDENSergey Vlasov2009-06-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | The command invoked when no keys were pressed for the specified time (ONTIMEOUT) may be different from the menu item initially selected when the menu is displayed (DEFAULT or MENU DEFAULT). Unfortunately, this did not work together with MENU HIDDEN (which is exactly the case when having a separate ONTIMEOUT command makes the most sense). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/vesamenu.cH. Peter Anvin2009-05-291-8/+8
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/vesamenu.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/refstr.hH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/refstr.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/refstr.cH. Peter Anvin2009-05-291-46/+46
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/refstr.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/readconfig.cH. Peter Anvin2009-05-291-830/+816
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/readconfig.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/printmsg.cH. Peter Anvin2009-05-291-70/+70
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/printmsg.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/passwd.cH. Peter Anvin2009-05-291-50/+50
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/passwd.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/menumain.cH. Peter Anvin2009-05-291-910/+936
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/menumain.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/menu.hH. Peter Anvin2009-05-291-89/+89
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/menu.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/menu.cH. Peter Anvin2009-05-291-5/+5
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/menu.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/execute.cH. Peter Anvin2009-05-291-39/+39
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/execute.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/drain.cH. Peter Anvin2009-05-291-13/+13
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/drain.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/colors.cH. Peter Anvin2009-05-291-113/+114
| | | | | | | | | | | | | | | | | | Automatically reformat com32/menu/colors.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Run Nindent on com32/menu/background.cH. Peter Anvin2009-05-291-5/+5
|/ | | | | | | | | Automatically reformat com32/menu/background.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Don't set the autocr flag on the serial console; clean up crapsyslinux-3.81-pre12H. Peter Anvin2009-05-233-27/+0
| | | | | | | | | | | | | libutil would set the autocr flag on the serial console, which really never was any point -- we already do \n -> \r\n conversion explicitly in the serial code. This was always very annoying to deal with if the menu was interrupted. Furthermore, drop completely unnecessary initialization/deinitialization routines that completely duplicated other code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Global whitespace cleanup.H. Peter Anvin2009-04-202-5/+2
| | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* menu: modify MENU SAVE to be a cascading defaultH. Peter Anvin2009-04-143-6/+20
| | | | | | | Change MENU SAVE to be a cascading default that can be reverted with MENU NOSAVE. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Makefiles: try to make "make install" do the right thingH. Peter Anvin2009-04-061-1/+1
| | | | | | | | One more attempt at getting semi-sanity to "make install". Realistically, the install/netinstall/install-all/... needs to be pushed into the com32 Makefiles, but this is at least a quick hack. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Implement MENU SAVE; fix COM32 setadv functionsyslinux-3.74-pre18H. Peter Anvin2009-04-063-0/+32
| | | | | | | | Implement MENU SAVE, which allows the menu system to retain the previous selection from one boot to another. In the process, fix the syslinux_setadv() function. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Update copyright notices; add Intel notices where appropriateH. Peter Anvin2009-04-041-1/+2
| | | | | | | Update copyright notices. Per agreement with my new employer, Intel Corporation, add Intel copyright notices where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Add new "UI" directive instead of abusing the DEFAULT directiveH. Peter Anvin2008-12-142-1/+44
| | | | | | | | | Add a new "UI" directive to specify a user interface module, instead of abusing the DEFAULT directive. This allows the DEFAULT directive to be used for setting the default, even when the menu system is enabled. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix "make clean" confusionsyslinux-3.72H. Peter Anvin2008-09-251-1/+2
| | | | | | | | "make clean" must NOT remove stuff that "make installer" should not rebuild. This is a somewhat unfortunate choice of naming, but that's the way it is. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* simple menu: make "menu default" work after "menu begin"H. Peter Anvin2008-09-221-1/+5
| | | | | | | Make "menu default" work after "menu begin", similar to after "label". This is consistent with how "menu label" works. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* menu: quiet warnings in drain_keyboard()syslinux-3.72-pre5H. Peter Anvin2008-09-081-2/+2
| | | | | | | | Quiet warnings in drain_keyboard(). We need some volatiles in order to keep gcc from optimizing some of the clearings away, but cast them away where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Add pxechain.com; new modules direction; reorganize installationH. Peter Anvin2008-08-271-2/+0
| | | | | | | | | Add the pxechain module from Jeffery Hutzelman at CMU. Create new modules directory for non-com32 modules. Centralize installation, since we have three types of install, and only one of them was distributed. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* menu: avoid leaving obvious password turds in memoryH. Peter Anvin2008-08-265-12/+57
| | | | | | Avoid leaving obvious password turds in memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Clean up embedded Makefile targets; fix build failureH. Peter Anvin2008-08-221-2/+2
| | | | | | Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
* Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin2008-08-201-64/+3
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* com32: compile with -std=gnu99H. Peter Anvin2008-08-121-2/+4
| | | | | | | Compile with -std=gnu99, this allows us to define initializers inside for() loops, which makes certain kinds of ugly macros easier to write. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* vesamenu: avoid strcmp() with NULLH. Peter Anvin2008-07-221-1/+1
| | | | | Avoid touching memory at address zero when going from a background to a non-background.
* Allow the initrd to be specified on a separate linesyslinux-3.71-pre4H. Peter Anvin2008-07-031-0/+14
| | | | | Allow the initrd to be specified on a separate line from command-line options (append). This apparently can help certain tools.
* Simple menu: really avoid disabled entriessyslinux-3.71-pre2H. Peter Anvin2008-07-021-22/+30
| | | | Really, really try to avoid stepping on disabled entries...
* Default to \n -> \r\n in ANSI and xserialH. Peter Anvin2008-06-241-2/+2
| | | | | | | | | | | Default to \n -> \r\n conversion in the ANSI and xserial modules, rather than relying on escape codes to make that behave. This effectively means that as far as the serial port is concerned, this behavior cannot be turned off (with less than having the xserial state machine interpret this sequence) and the escape code *should not* be used. That is fine for our applications, though.
* Centralize configurables; better "make install" etcH. Peter Anvin2008-05-291-1/+2
| | | | | | | Begin the process of centralizing configurables. Improve "make install" and "make netinstall"; add "make extbootinstall".
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-291-1/+1
| | | | | | | | Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.
* Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC ↵Stefan Bucur2008-05-121-1/+1
| | | | -fstack-protector flag enabled by default.
* Prevent inclusion of system include files when inappropriateH. Peter Anvin2008-03-032-4/+5
| | | | | Use "-nostdinc -iwithprefix include" to prevent the inclusion of system header files, but still permitting *compiler* header files.