summaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui.h b/ui.h
index 9263a28..25ac537 100644
--- a/ui.h
+++ b/ui.h
@@ -1,6 +1,8 @@
#ifndef UI_H
#define UI_H
+#include "str.h"
+
typedef enum {
UI_REDRAW,
UI_KEY_DOWN,
@@ -8,6 +10,8 @@ typedef enum {
} UiEventType;
typedef enum {
+ UIK_ESCAPE,
+ UIK_BACKSPACE,
UIK_UP,
UIK_DOWN,
UIK_LEFT,
@@ -33,9 +37,9 @@ typedef struct {
};
} UiEvent;
-void ui_init(void);
+void ui_init(int argc, char **argv);
void ui_fini(void);
-void ui_draw(Str input, int seli, Str *opt, int optn);
+void ui_draw(Str input, int inpi, int seli, Str *optv, int optc);
int ui_wait_event(UiEvent *e);
#endif