1#include <ncurses.h>
2
3typedef struct progress_bar {
4 float total;
5 float current;
6 WINDOW *scr;
7} PROGRESS_BAR;
8
9PROGRESS_BAR* new_progress_bar(WINDOW*, float);
10void bar_step(PROGRESS_BAR*, float);
11
12
13typedef struct text_box {
14 wchar_t *text;
15 int length;
16 int current;
17 WINDOW *scr;
18} TEXT_BOX;
19
20TEXT_BOX* new_text_box(WINDOW*, int);
21void get_char(TEXT_BOX* text);
22