aboutsummaryrefslogtreecommitdiffstats
path: root/src/hci/tui/widget_ui.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-06-14 11:47:55 +0100
committerMichael Brown <mcb30@ipxe.org>2024-06-18 14:46:31 -0700
commitbb4a10696fb6541fdcfc2c057cf698de37fa5eba (patch)
treee568749785a510b8cbebfcbe714183dcfea1e2f3 /src/hci/tui/widget_ui.c
parente965f179e1654103eca33feed7a9cc4c51d91be6 (diff)
downloadipxe-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.c6
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 )