aboutsummaryrefslogtreecommitdiffstats
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
* dmi: fix a strcpy (typo)Pierre-Alexandre Meyer2009-11-011-1/+1
| | | | | | Not sure why sprintf is being called here. It's probably strcpy that was meant. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: change inactive attributes (MENU)Pierre-Alexandre Meyer2009-11-011-0/+3
| | | | | | | | | | The default inactive attributes in cmenu make little sense in HDT. They actually make the menus hard to read. Instead, use the same attributes as the active entries for the inactive ones. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* cmenu: reset the cursor position on shutdownPierre-Alexandre Meyer2009-11-011-0/+1
| | | | | | | | | | Reset the cursor at the top left corner of the screen when exiting the menu. This fixes odd behaviors when switching back and forth between CLI and menu in HDT. Closes: #14 Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* dmi: Adding smbios detectionErwan Velu2009-10-304-36/+58
| | | | | | | | Impact: Avoid misdetection of dmi version On some hosts, the legacy DMI version is reported as 0.0. We can use SMBIOS to get the real version. Solves HDT's ticket #8
* hdt: Fixing {s}printf typoErwan Velu2009-10-301-5/+5
| | | | | | | Impact: Avoid some unwanted printf Some dmi calls were using printf instead of sprintf. This solves ticket #11
* hdt: Adding hdt.img.gz targetErwan Velu2009-10-291-0/+4
| | | | | | Impact: It's now possible to have a gzipped floppy image 'make hdt.img.gz' now generates a gzipped floppy image
* disklib: Adding new grub2 mbr magicErwan Velu2009-10-281-0/+1
| | | | | | Impact: Detecting newer release of Grub2 Newer releases of grub2 have a eb63 signature
* disklib: Fixing Syslinux DetectionErwan Velu2009-10-281-2/+2
| | | | | | Impact: Syslinux is now detected as bootloader A test wasn't correct and prevented the Syslinux mbr detection
* hdt: Fixing hdt.iso target, pci.ids was missingErwan Velu2009-10-271-2/+3
| | | | | | | | Impact: Iso file is now having pci.ids The makefile did forget to copy the pci.ids into the iso. This stupid test is fixed. Thx gert from reporting it.
* hdt: Adding Gert as contributorhdt-0.3.5-pre1Erwan Velu2009-10-271-3/+3
| | | | | | Impact: none Gert is contributing in hdt, he have to be in the contributor list
* Merge commit 'erwan/master' into hdt-0.3.5Pierre-Alexandre Meyer2009-10-2716-15/+245
|\
| * Improving chain.c32 help messageGert Hulselmans2009-10-271-1/+12
| | | | | | | | | | | | | | Impact: Error message is more detailed In case of syntax error, the message is far more detailed and provides the same content as the documentation integrated in the source code.
| * hdt: Removing useless Author NameErwan Velu2009-10-272-4/+4
| | | | | | | | | | | | Impact: visual Pierre do much work on it, no need to keep my name everywhere ;)
| * Merge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdtErwan Velu2009-10-271-22/+25
| |\
| | * hdt: Cleaning MakefileErwan Velu2009-10-211-22/+25
| | | | | | | | | | | | | | | | | | Impact: none We use more variables to have a clean makefile
| * | Merge commit 'hpa/master'Erwan Velu2009-10-191-1/+1
| |\ \ | | |/ | |/|
| | * mboot: correct the detection of the multiboot headerH. Peter Anvin2009-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Correct the detection of the multiboot header. The logic for when the header extends past the file was backwards, which broke non-ELF multiboot kernels completely. Apparently they are few and far between. Reported-by: Klaus T. <nightos@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | hdt: Adding hdt.iso targetErwan Velu2009-10-191-1/+18
| |/ | | | | | | | | | | Impact: It's now possible to generate a bootable iso make hdt.iso now generates a bootable iso
| * hdt: Adding missing hdt.c32 in 'make hdt.img'Erwan Velu2009-10-071-0/+1
| | | | | | | | | | | | | | | | | | Impact: hdt.img is now complete and running After several modification of the makefile, the copy of hdt.c32 had disapeared from the makefile :( This commit reintroduce this missing. 'make hdt.img' is now working again
| * hdt: Removing pci.idsErwan Velu2009-10-051-17141/+0
| | | | | | | | | | | | | | Impact: Removing optional file The pci.ids have to be taken on the system or downloaded from the pciids website. Syslinux doesn't have to provide it.
| * hdt: Adding hdt.img targetGert Hulselmans2009-10-045-1/+17185
| | | | | | | | | | | | | | Impact: add a bootable floppy image The 'make hdt.img' command generates a hdt.img file. hdt.img is a 2.88MB floppy bootable image.
| * chain: missing some \n one error messagesErwan Velu2009-09-291-4/+4
| | | | | | | | | | | | | | | | Impact: visual Some \n where missing in some error() calls Signed-off-by: Gert Hulselmans <kimmik999999@yahoo.co.uk>
| * Adding VMX & SVM cpu flagsErwan Velu2009-09-296-0/+18
| | | | | | | | | | | | Impact: Hardware virtualization is now detected Minor update to detect vmx & svm cpu flags
| * gpxecmd: module to send an arbitrary command to gPXEsyslinux-3.83-pre11H. Peter Anvin2009-09-102-4/+141
| | | | | | | | | | | | | | Simple module to send an arbitrary command to gPXE, assuming the gPXE CLI API is available. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'cmenu-video' into hdt-nextPierre-Alexandre Meyer2009-09-0728-1546/+1322
|\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/hdt/hdt-cli-disk.c com32/hdt/hdt-common.c Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: use ASCII characters for scrollbarsPierre-Alexandre Meyer2009-09-072-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use ^ and v as hints for scrolling. Use \141 from the Special Characters and Line Drawing Character Set as the scrollbox. Note: printf "\016\141\017" doesn't seem to work well on xterm, although it does work on the vga console. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: do not invoke help if helpid is 0xFFFF (complex.c)Pierre-Alexandre Meyer2009-09-071-1/+1
| | | | | | | | | | | | | | | | | | 0xFFFF is invalid (no help) Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: do not invoke help if helpid is 0xFFFFPierre-Alexandre Meyer2009-09-071-1/+3
| | | | | | | | | | | | | | | | | | 0xFFFF is invalid (no help). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: redraw the current menu after exiting the keys_handlerPierre-Alexandre Meyer2009-09-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After exiting the keys_handler, reset_ui() is not enough since it only resets the status line and title. The current menu needs to be redrawn. Note: only a submenu will be redrawn, not its parents. This means that not all the UI will be displayed after exiting the handler if invoked from whithin a submenu. We have already this problem nowadays when exiting a submenu of a submenu. The root parent is not redrawn, leading to some ugly states (the background color overrides part of the root menu). This will be fixed when we implement a real hierarchy (each submenu having access to its parents). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: remove extra LFPierre-Alexandre Meyer2009-09-076-4/+20
| | | | | | | | | | | | | | | | | | | | | In a few places, extra LFs cause the menu to scroll ('\n' in the status bar). Remove them (they are not needed anyway). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: optimize redraw to be fasterPierre-Alexandre Meyer2009-09-071-63/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmenu currently redraws everything after each key press. This doesn't scale well, especially over serial. Instead, redraw only the previous/current selected entries. A full redraw is still needed when scrolling though. Misc.: add CTRL-L combo to force a redraw of the current menu. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: force refresh after checkbox_handler in complex.cPierre-Alexandre Meyer2009-09-071-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | complex.c has a special checkbox_handler that disables mutual exclusive entries. This works today because each key press triggers a redraw of the whole menu. We can't rely on this if we want to optimize the redraw. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: redraw menu when exiting keys_handlerPierre-Alexandre Meyer2009-09-071-12/+22
| | | | | | | | | | | | | | | | | | | | | The keys_handler can change the UI (e.g. the help system draws a black background by default). We need to redraw the background and title on exit. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: pad help filename with 0 instead of spacesPierre-Alexandre Meyer2009-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The manual states that the help filename format is hlp<NNNNN>.txt where <NNNNN> is the helpid. If the helpid contains less than 5 digits, pad with zero, not spaces, i.e. look for hlp00023.txt, not hlp 23.txt. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: remove obsolete com32io codePierre-Alexandre Meyer2009-09-062-14/+0
| | | | | | | | | | | | | | | | | | Remove legacy scrollupwindow definition and checkkbdbuf declaration. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: make the help menu actually workPierre-Alexandre Meyer2009-09-062-22/+39
| | | | | | | | | | | | | | | | | | | | | With the recent changes in cmenu, the help feature was completely broken. Fix it. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: fix build due to cmenu keyboard changesPierre-Alexandre Meyer2009-09-062-4/+5
| | | | | | | | | | | | | | | | | | Sames changes as the ones needed on the cmenu examples. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | libansi: add function to scroll up multiple linesPierre-Alexandre Meyer2009-09-051-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Impact: API change. scrollup() has been renamed scrollup_once(). Use scrollup(nb_of_lines) to specify the number of lines the window needs to scroll. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: fix handlers signature in the examplesPierre-Alexandre Meyer2009-09-052-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The keys handler accepts three arguments: the current menu system, the current menu entry and the key pressed. Misc: fix timeout in complex.c to actually be 10 seconds. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: use get_key library for keyboard functionsPierre-Alexandre Meyer2009-09-0510-211/+99
| | | | | | | | | | | | | | | | | | | | | Syslinux already uses a get_key library to handle stdin. Let's leverage it. cmenu now works over serial completely. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | libansi: correctly reset attributesPierre-Alexandre Meyer2009-09-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When resetting the attributes, we were updating last_attr to the unknown value 0x300, which doesn't always work. For instance, when requesting reset and normal attributes, i.e. "\e[0;30;47m" with the previous attribute being "\e[1;30;47m", we where printing "\e[0;47m", which behaves like "\e[0;39;47m". This is incorrect. This patch adds a flag to explicitly set background and foreground colors after a reset. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | libansi: reset_colors should use csprintPierre-Alexandre Meyer2009-09-051-1/+1
| | | | | | | | | | | | | | | | | | cprint_vga2ansi takes only a char, not a string. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: fill backgorund with printable characterPierre-Alexandre Meyer2009-09-052-5/+5
| | | | | | | | | | | | | | | | | | | | | To have a blue background on the console (serial), we need to fill the screen with a printable character (e.g. space). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: remove legacy CHABSATTR/CHRELATTR codePierre-Alexandre Meyer2009-09-051-3/+0
| | | | | | | | | | | | | | | | | | CHABSATTR and CHRELATTR have been replaced by SO/SI. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: remove legacy box drawing codePierre-Alexandre Meyer2009-09-054-81/+0
| | | | | | | | | | | | | | | | | | Lines are now printed via the Line Drawing Character Set. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: unify normal menu/radio menu handlingPierre-Alexandre Meyer2009-09-052-208/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of code was duplicated between regular and normal menus (menu printing and selection handling). This patch unifies this logic by adding an extra bool in printmenu() and getmenuoption() to distinguish between the two types of menus. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: fix Login/Password and Kernel Arguments lines (complex.c)Pierre-Alexandre Meyer2009-09-051-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the cmenu example complex.c to use clear_line(): cprint behavior has changed w.r.t. cursor positioning (it is automatically advanced now). Note: need to reset the colors before clearing the line since the status bar is printed just before the Kernel Arguments line and it changes the background color. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | libansi: add reset_colors functionPierre-Alexandre Meyer2009-09-052-0/+7
| | | | | | | | | | | | | | | | | | Purpose of reset_colors is to reset the attribute to VGA 0x07. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | cmenu: turn off auto wrapPierre-Alexandre Meyer2009-09-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Auto wrap made the menu scroll because of the status line (when printing the last character of the bottom right of the screen, the ansicon scrolled the whole menu). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | ansi: add support for no-wrap mode, cleanupsH. Peter Anvin2009-09-042-40/+51
| | | | | | | | | | | | | | | | | | | | | | | | Add support for nowrap mode CSI ? 7 l (unfortunately, on ANSI.SYS it is CSI = 7 l; which means that the only way to support both is to print both sequences and then erase the resulting garbage.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>