aboutsummaryrefslogtreecommitdiff
path: root/ui_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui_input.c')
-rw-r--r--ui_input.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui_input.c b/ui_input.c
index 261ebf8..44ce318 100644
--- a/ui_input.c
+++ b/ui_input.c
@@ -32,12 +32,17 @@ input_cb(WINDOW *win, void *data, bool needs_update)
struct input *a = (struct input *) data;
if (a == NULL) return (UICB_ERR_UNDEF);
+mvaddch(7,1,'A');
+wrefresh(win);
+refresh();
return (UICB_OK);
}
void
-register_input(struct input *a, unsigned int x, unsigned int y, unsigned int width, unsigned int height, chtype attr)
+register_input(unsigned int x, unsigned int y, unsigned int width, unsigned int height, struct input *a, chtype attr)
{
- WINDOW *wnd = newwin(y, x, width, height);
+ WINDOW *wnd = newwin(height, width, y, x);
+ box(wnd, 0, 0);
+wrefresh(wnd);
register_ui_elt(input_cb, (void *) a, wnd, attr);
}