Michael Brown
259858950a
[mucurses] Use centralised concept of colour pairs
...
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-12-09 15:34:14 +00:00
Michael Brown
03401f9d21
[console] Allow consoles to update the recorded console size
...
Provide a mechanism for consoles to update the recorded console width
and height, and use this width and height to provide the curses COLS
and LINES variables.
We choose not to use ANSI escape sequences to obtain the width and
height, for two reasons:
- iPXE's model is that all output is sent to all consoles; we could
therefore end up with multiple consoles reporting conflicting widths
and heights
- when a serial console is in use, we probably don't want to resize
the output shown on the BIOS console to match the size of the serial
console, since it's likely that the serial console is in use only
for debugging.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-12-06 17:47:54 +00:00
Michael Brown
936971d0ed
[mucurses] Implement curs_set() to control cursor visibility
...
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-12-02 17:23:09 +00:00
Michael Brown
7271b50890
[mucurses] Use "<ESC>[2J" ANSI escape sequence to clear screen
...
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-11-28 05:03:05 +00:00
Michael Brown
b9663b8049
[build] Fix uses of literal 0 as a NULL pointer
...
Detected using sparse.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-04-28 17:13:44 +01:00
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>
2012-07-20 19:55:45 +01:00
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>
2012-03-26 19:02:30 +01:00
Michael Brown
a6d49c17c9
[console] Move putchar() and getchar() declarations to stdio.h
...
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-26 14:43:52 +01:00
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>
2011-03-30 17:12:10 +01:00
Michael Brown
1c0ff6e1a7
[console] Move include/console.h to include/ipxe/console.h
...
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-03-09 20:09:26 +00:00
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>
2010-04-19 23:43:39 +01:00
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.
2009-05-18 08:33:25 +01:00
Michael Brown
67ee41ad6d
[editbox] Allow for password widgets that do not display their contents
2009-02-17 11:55:55 +00:00
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.
2009-02-01 01:21:40 +00:00
Alexey Zaytsev
a1572e0ab0
Modify gPXE core and drivers to work with the new timer subsystem
...
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
2008-03-02 03:41:10 +03:00
Holger Lubitz
d39e79248c
__nonnull changes
2007-08-20 00:33:55 +02:00
Holger Lubitz
c5414e6d12
__nonnull changes
2007-08-20 00:33:51 +02:00
Holger Lubitz
6a3ee34c18
__nonnull changes
2007-08-20 00:32:51 +02:00
Michael Brown
0d568ac219
Make has_key() a static inline, rather than omitting it altogether.
2007-07-28 22:55:17 +01:00
Michael Brown
3e816c3d56
Revert "make bool m_echo static" - I suspect this to be defined by spec
...
This reverts commit 3cb133d27d
.
2007-07-28 22:52:20 +01:00
Holger Lubitz
3cb133d27d
make bool m_echo static
2007-07-27 21:47:28 +02:00
Holger Lubitz
ac1e0aa63e
remove has_key by #if 0'ing out
2007-07-27 21:46:21 +02:00
Holger Lubitz
0e0843a872
make _wgetc static
2007-07-27 21:45:04 +02:00
Holger Lubitz
9280f2649a
make struct _softlabelkeys *slks static
2007-07-27 21:38:45 +02:00
Marty Connor
c77704cb60
Warnings purge: src/{crypto,hci,net}
2007-07-03 13:20:22 -04:00
Michael Brown
f4c1e564a1
vsprintf.h is gPXE-specific; move it to include/gpxe
2007-01-19 01:17:23 +00:00
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
2007-01-19 01:13:12 +00:00
Michael Brown
5ff23aa406
Include stdlib.h rather than malloc.h
2007-01-18 20:06:03 +00:00
Michael Brown
d0a3cc3417
Avoid creating implicit memcpy()s
2007-01-05 14:48:20 +00:00
Michael Brown
b9f8599537
Define KEY_MIN and use it in kb.c.
2006-12-20 21:10:32 +00:00
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).
2006-12-20 06:12:04 +00:00
Michael Brown
c66b99272f
Fix (hopefully) the scrolling logic
2006-12-20 03:41:55 +00:00
Michael Brown
3e0f7621eb
Don't automatically redraw the edit box; this allows better inheritance.
2006-12-20 02:09:41 +00:00
Michael Brown
35dcbfe771
Editable text box widget based on mucurses and edit_string.
2006-12-20 01:40:57 +00:00
Michael Brown
82ec3fc5cc
Reset screen on exit as well as entry
2006-12-20 01:30:40 +00:00
Michael Brown
abbfbd678d
Explicitly move cursor to top-left of screen, in case the clear screen
...
call doesn't do it.
2006-12-19 22:37:12 +00:00
Michael Brown
c1bac56f85
Use current attributes when erasing.
2006-12-19 01:17:10 +00:00
Michael Brown
cdfe61662b
Assume a 24-line screen, since we can't (easily) avoid scrolling after
...
printing in the bottom-right position.
2006-12-19 01:16:43 +00:00
Michael Brown
e85bf52446
Avoid cursor move on every single character
2006-12-19 00:51:32 +00:00
Michael Brown
e7cc1c6c35
Use ANSI escape sequence to reset and clear terminal, rather than using
...
the (slow) werase().
2006-12-19 00:33:36 +00:00
Michael Brown
edbdce6e3d
Now basically functioning on ANSI-supporting consoles.
2006-12-19 00:27:25 +00:00
Michael Brown
09f9142cbf
Adjusted to use the normal internal mucurses API rather than accessing
...
stdscr directly.
2006-12-18 21:44:44 +00:00
Michael Brown
b6b36e8ac4
Remove more dynamic allocation
2006-12-18 21:28:35 +00:00
Michael Brown
04d15fb8f8
There seems to be no reason why pos_x is static...
2006-12-18 21:12:58 +00:00
Michael Brown
1f74fa2cad
Remove some unnecessary use of calloc() for tiny memory areas.
2006-12-18 21:11:30 +00:00
Michael Brown
ba26defa6e
Convert _{store,restore}_cursor_pos to static inlines.
2006-12-18 20:46:41 +00:00
Michael Brown
56970053f4
wmove() is part of the public curses API, and already defined in curses.h
2006-12-18 20:38:07 +00:00
Michael Brown
1755d8df7a
Renamed core.h to mucurses.h
2006-12-18 16:52:21 +00:00
Michael Brown
426e847c4c
Rename core.c->mucurses.c; bin/core.o is too generic to belong to mucurses.
2006-12-18 16:50:02 +00:00
Michael Brown
2ed2b2efe8
Use iskey() and getchar() to interact with console, rather than object
...
abstraction.
2006-12-18 16:46:25 +00:00