summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 03:09:41 +0100
committerMichael Brown2006-12-20 03:09:41 +0100
commit3e0f7621ebde4a95a941985d791fdc580aad79d8 (patch)
tree0cdfec29429e734094e7e8e34550bfe0eb860d2d /src/hci/mucurses
parentEditable text box widget based on mucurses and edit_string. (diff)
downloadipxe-3e0f7621ebde4a95a941985d791fdc580aad79d8.tar.gz
ipxe-3e0f7621ebde4a95a941985d791fdc580aad79d8.tar.xz
ipxe-3e0f7621ebde4a95a941985d791fdc580aad79d8.zip
Don't automatically redraw the edit box; this allows better inheritance.
Diffstat (limited to 'src/hci/mucurses')
-rw-r--r--src/hci/mucurses/widgets/editbox.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/hci/mucurses/widgets/editbox.c b/src/hci/mucurses/widgets/editbox.c
index 64c121a1..ef65df3b 100644
--- a/src/hci/mucurses/widgets/editbox.c
+++ b/src/hci/mucurses/widgets/editbox.c
@@ -94,22 +94,3 @@ void draw_editbox ( struct edit_box *box ) {
mvwprintw ( box->win, box->row, box->col, "%s", buf );
wmove ( box->win, box->row, ( box->col + cursor_offset ) );
}
-
-/**
- * Edit text box widget
- *
- * @v box Editable text box widget
- * @v key Key pressed by user
- * @ret key Key returned to application, or zero
- *
- */
-int edit_editbox ( struct edit_box *box, int key ) {
-
- /* Update the string itself */
- key = edit_string ( &box->string, key );
-
- /* Update the display */
- draw_editbox ( box );
-
- return key;
-}