Michael Brown
b9663b8049
[build] Fix uses of literal 0 as a NULL pointer
Detected using sparse.
Signed-off-by: Michael Brown <mcb30@ipxe.org >
пре 11 година
Michael Brown
c3b4860ce3
[legal] Update FSF mailing address in GPL licence texts
Suggested-by: Daniel P. Berrange <berrange@redhat.com >
Signed-off-by: Michael Brown <mcb30@ipxe.org >
пре 12 година
Michael Brown
64d17dbd50
[console] Exclude text-based UI output from logfile-based consoles
The output from text-based user interfaces such as the "config"
command is not generally meaningful for logfile-based consoles such as
syslog and vmconsole.
Signed-off-by: Michael Brown <mcb30@ipxe.org >
пре 12 година
Michael Brown
a6d49c17c9
[console] Move putchar() and getchar() declarations to stdio.h
Signed-off-by: Michael Brown <mcb30@ipxe.org >
пре 12 година
Michael Brown
6a6dd5c452
[readline] Add init_editstring() wrapper function
Standardise on using init_editstring() to initialise an embedded
editable string, to match the coding style used by other embedded
objects.
Signed-off-by: Michael Brown <mcb30@ipxe.org >
пре 13 година
Michael Brown
1c0ff6e1a7
[console] Move include/console.h to include/ipxe/console.h
Signed-off-by: Michael Brown <mcb30@ipxe.org >
пре 13 година
Michael Brown
8406115834
[build] Rename gPXE to iPXE
Access to the gpxe.org and etherboot.org domains and associated
resources has been revoked by the registrant of the domain. Work
around this problem by renaming project from gPXE to iPXE, and
updating URLs to match.
Also update README, LOG and COPYRIGHTS to remove obsolete information.
Signed-off-by: Michael Brown <mcb30@ipxe.org >
пре 14 година
Michael Brown
c44a193d0d
[legal] Add a selection of FILE_LICENCE declarations
Add FILE_LICENCE declarations to almost all files that make up the
various standard builds of gPXE.
пре 15 година
Michael Brown
67ee41ad6d
[editbox] Allow for password widgets that do not display their contents
пре 15 година
Michael Brown
e65afc4b10
[dhcp] Split PXE menuing code out of dhcp.c
The DHCP client code now implements only the mechanism of the DHCP and
PXE Boot Server protocols. Boot Server Discovery can be initiated
manually using the "pxebs" command. The menuing code is separated out
into a user-level function on a par with boot_root_path(), and is
entered in preference to a normal filename boot if the DHCP vendor
class is "PXEClient" and the PXE boot menu option exists.
пре 16 година
Alexey Zaytsev
a1572e0ab0
Modify gPXE core and drivers to work with the new timer subsystem
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com >
пре 16 година
Holger Lubitz
d39e79248c
__nonnull changes
пре 17 година
Holger Lubitz
c5414e6d12
__nonnull changes
пре 17 година
Holger Lubitz
6a3ee34c18
__nonnull changes
пре 17 година
Michael Brown
0d568ac219
Make has_key() a static inline, rather than omitting it altogether.
пре 17 година
Michael Brown
3e816c3d56
Revert "make bool m_echo static" - I suspect this to be defined by spec
This reverts commit 3cb133d27d .
пре 17 година
Holger Lubitz
3cb133d27d
make bool m_echo static
пре 17 година
Holger Lubitz
ac1e0aa63e
remove has_key by #if 0'ing out
пре 17 година
Holger Lubitz
0e0843a872
make _wgetc static
пре 17 година
Holger Lubitz
9280f2649a
make struct _softlabelkeys *slks static
пре 17 година
Marty Connor
c77704cb60
Warnings purge: src/{crypto,hci,net}
пре 17 година
Michael Brown
f4c1e564a1
vsprintf.h is gPXE-specific; move it to include/gpxe
пре 18 година
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
пре 18 година
Michael Brown
5ff23aa406
Include stdlib.h rather than malloc.h
пре 18 година
Michael Brown
d0a3cc3417
Avoid creating implicit memcpy()s
пре 18 година
Michael Brown
b9f8599537
Define KEY_MIN and use it in kb.c.
пре 18 година
Michael Brown
9ab17484d0
Explicitly call erase(), to cope with platforms where the ANSI clear
screen sequence doesn't work (like bios_console.c on some platforms).
пре 18 година
Michael Brown
c66b99272f
Fix (hopefully) the scrolling logic
пре 18 година
Michael Brown
3e0f7621eb
Don't automatically redraw the edit box; this allows better inheritance.
пре 18 година
Michael Brown
35dcbfe771
Editable text box widget based on mucurses and edit_string.
пре 18 година
Michael Brown
82ec3fc5cc
Reset screen on exit as well as entry
пре 18 година
Michael Brown
abbfbd678d
Explicitly move cursor to top-left of screen, in case the clear screen
call doesn't do it.
пре 18 година
Michael Brown
c1bac56f85
Use current attributes when erasing.
пре 18 година
Michael Brown
cdfe61662b
Assume a 24-line screen, since we can't (easily) avoid scrolling after
printing in the bottom-right position.
пре 18 година
Michael Brown
e85bf52446
Avoid cursor move on every single character
пре 18 година
Michael Brown
e7cc1c6c35
Use ANSI escape sequence to reset and clear terminal, rather than using
the (slow) werase().
пре 18 година
Michael Brown
edbdce6e3d
Now basically functioning on ANSI-supporting consoles.
пре 18 година
Michael Brown
09f9142cbf
Adjusted to use the normal internal mucurses API rather than accessing
stdscr directly.
пре 18 година
Michael Brown
b6b36e8ac4
Remove more dynamic allocation
пре 18 година
Michael Brown
04d15fb8f8
There seems to be no reason why pos_x is static...
пре 18 година
Michael Brown
1f74fa2cad
Remove some unnecessary use of calloc() for tiny memory areas.
пре 18 година
Michael Brown
ba26defa6e
Convert _{store,restore}_cursor_pos to static inlines.
пре 18 година
Michael Brown
56970053f4
wmove() is part of the public curses API, and already defined in curses.h
пре 18 година
Michael Brown
1755d8df7a
Renamed core.h to mucurses.h
пре 18 година
Michael Brown
426e847c4c
Rename core.c->mucurses.c; bin/core.o is too generic to belong to mucurses.
пре 18 година
Michael Brown
2ed2b2efe8
Use iskey() and getchar() to interact with console, rather than object
abstraction.
пре 18 година
Dan Lynch
c29c868475
- implemented cursor retreat function (_wcursback) as a core function
- reimplemented cleaner wgetnstr
- fixed wdelch for use with _wcursback
пре 18 година
Dan Lynch
7f4cfe4a84
- put in the screen initialisation stuff and clear the screen...
пре 18 година
Dan Lynch
11e280670d
- works with test ansi tty, but will need a rethink when we start
getting key_ codes instead
пре 18 година
Dan Lynch
916f21921f
check whether malloc returns a valid pointer
пре 18 година