dict @ d102e028aee6571c0fd9dfd4074cfb3c15f4594e

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