| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Not sure why sprintf is being called here. It's probably strcpy that was meant.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Impact: Avoid some unwanted printf
Some dmi calls were using printf instead of sprintf.
This solves ticket #11
|
|
|
|
|
|
| |
Impact: It's now possible to have a gzipped floppy image
'make hdt.img.gz' now generates a gzipped floppy image
|
|
|
|
|
|
| |
Impact: Detecting newer release of Grub2
Newer releases of grub2 have a eb63 signature
|
|
|
|
|
|
| |
Impact: Syslinux is now detected as bootloader
A test wasn't correct and prevented the Syslinux mbr detection
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Impact: none
Gert is contributing in hdt, he have to be in the contributor list
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
Impact: visual
Pierre do much work on it, no need to keep my name everywhere ;)
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Impact: none
We use more variables to have a clean makefile
|
| |\ \
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| |/
| |
| |
| |
| |
| | |
Impact: It's now possible to generate a bootable iso
make hdt.iso now generates a bootable iso
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Impact: visual
Some \n where missing in some error() calls
Signed-off-by: Gert Hulselmans <kimmik999999@yahoo.co.uk>
|
| |
| |
| |
| |
| |
| | |
Impact: Hardware virtualization is now detected
Minor update to detect vmx & svm cpu flags
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
com32/hdt/hdt-cli-disk.c
com32/hdt/hdt-common.c
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
0xFFFF is invalid (no help)
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | | |
0xFFFF is invalid (no help).
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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 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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Remove legacy scrollupwindow definition and checkkbdbuf declaration.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
With the recent changes in cmenu, the help feature was completely broken.
Fix it.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Sames changes as the ones needed on the cmenu examples.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
cprint_vga2ansi takes only a char, not a string.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
CHABSATTR and CHRELATTR have been replaced by SO/SI.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Lines are now printed via the Line Drawing Character Set.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Purpose of reset_colors is to reset the attribute to VGA 0x07.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|