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); 10 11void bar_step(PROGRESS_BAR*, float);