diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-06-14 11:47:55 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-06-18 14:46:31 -0700 |
commit | bb4a10696fb6541fdcfc2c057cf698de37fa5eba (patch) | |
tree | e568749785a510b8cbebfcbe714183dcfea1e2f3 /src/hci/tui/widget_ui.c | |
parent | e965f179e1654103eca33feed7a9cc4c51d91be6 (diff) | |
download | ipxe-bb4a10696fb6541fdcfc2c057cf698de37fa5eba.tar.gz |
[hci] Draw all widgets on the standard screen
The curses concept of a window has been supported but never actively
used in iPXE since the mucurses library was first implemented in 2006.
Simplify the code by removing the ability to place a widget set in a
specified window, and instead use the standard screen for all drawing
operations.
This simplification allows the widget set parameter to be omitted for
the draw_widget() and edit_widget() operations, since the only reason
for its inclusion was to provide access to the specified window.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/tui/widget_ui.c')
-rw-r--r-- | src/hci/tui/widget_ui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hci/tui/widget_ui.c b/src/hci/tui/widget_ui.c index 5079eefdd..961545cf4 100644 --- a/src/hci/tui/widget_ui.c +++ b/src/hci/tui/widget_ui.c @@ -68,7 +68,7 @@ static int widget_ui_loop ( struct widgets *widgets ) { /* Draw all widgets */ list_for_each_entry ( widget, &widgets->list, list ) - draw_widget ( widgets, widget ); + draw_widget ( widget ); /* Count editable widgets */ count = 0; @@ -85,10 +85,10 @@ static int widget_ui_loop ( struct widgets *widgets ) { return -ENOENT; /* Redraw current widget */ - draw_widget ( widgets, widget ); + draw_widget ( widget ); /* Process keypress */ - key = edit_widget ( widgets, widget, getkey ( 0 ) ); + key = edit_widget ( widget, getkey ( 0 ) ); switch ( key ) { case KEY_UP: if ( current > 0 ) |