2007-08-12 20:40:55 +00:00
|
|
|
/*
|
|
|
|
*
|
2013-09-05 12:39:22 +00:00
|
|
|
* (c) 2007 Laurent Vivier <Laurent@Vivier.EU>
|
2007-08-12 20:40:55 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct emile_window {
|
|
|
|
int l, c;
|
|
|
|
int h, w;
|
|
|
|
} emile_window_t;
|
|
|
|
|
|
|
|
typedef struct emile_progressbar {
|
|
|
|
emile_window_t win;
|
|
|
|
int max;
|
|
|
|
int current;
|
|
|
|
} emile_progressbar_t;
|
|
|
|
|
2007-08-15 10:53:11 +00:00
|
|
|
typedef struct emile_list {
|
|
|
|
char** item;
|
|
|
|
int nb;
|
|
|
|
int current;
|
|
|
|
} emile_list_t;
|
|
|
|
|
|
|
|
|
2007-08-12 20:40:55 +00:00
|
|
|
extern void console_set_cursor_position(int l, int c);
|
|
|
|
extern void console_video_inverse(void);
|
|
|
|
extern void console_video_normal(void);
|
|
|
|
extern void console_select_charset(char c);
|
2007-08-15 10:53:11 +00:00
|
|
|
extern void console_cursor_off();
|
2007-09-17 22:58:45 +00:00
|
|
|
extern void console_cursor_on();
|
|
|
|
extern void console_cursor_save();
|
|
|
|
extern void console_cursor_restore();
|
2007-08-15 19:56:41 +00:00
|
|
|
extern int console_getchar(void);
|
|
|
|
extern int console_keypressed(int timeout);
|
2007-09-16 15:29:11 +00:00
|
|
|
extern int wait_char;
|
2007-08-12 20:40:55 +00:00
|
|
|
|
|
|
|
extern void emile_window(emile_window_t *win);
|
|
|
|
extern emile_progressbar_t* emile_progressbar_create(emile_window_t *win, int max);
|
|
|
|
extern void emile_progressbar_value(emile_progressbar_t* bar, int value);
|
|
|
|
extern void emile_progressbar_delete(emile_progressbar_t* bar);
|
2007-08-22 18:59:03 +00:00
|
|
|
extern int emile_scrolllist(emile_window_t *win, emile_list_t *list, int timeout);
|
2007-09-17 22:56:40 +00:00
|
|
|
extern void emile_edit(char *s, int length);
|