diff options
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -5,30 +5,11 @@ const char *uload = "█"; - PROGRESS_BAR* new_progress_bar(WINDOW* scr, float total) { PROGRESS_BAR *bar = (PROGRESS_BAR*)malloc(sizeof(PROGRESS_BAR)); bar->scr = scr; bar->total = total; bar->current = 0; - - int x, y; - int hx, hy; - - getmaxyx(scr, y, x); - - hx = x/2; - hy = y/2; - - wmove(scr, hy-1, 0); - wprintw(scr, uload); - - wmove(scr, hy, hx-4); - wprintw(scr, "000%%"); - - wmove(scr, hy+1, hx); - wprintw(scr, "%.0f/%.0f", 0.0, total); - return bar; } |