aboutsummaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-02-14 12:25:42 +0100
committerGabriel A. Giovanini <g.giovanini@gridx.de>2024-02-14 12:29:28 +0100
commit59f03c5663d07f87993d682e7fd07b453fc19a11 (patch)
tree35b0ceb4f141e390c6ee928c50875e006e1de913 /ui.c
parent3967b61dfbee50d2072ddefced877486ce439582 (diff)
downloaddict-59f03c5663d07f87993d682e7fd07b453fc19a11.tar.gz
dict-59f03c5663d07f87993d682e7fd07b453fc19a11.tar.bz2
dict-59f03c5663d07f87993d682e7fd07b453fc19a11.zip
feat: Add spellfix extension
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/ui.c b/ui.c
index 8837bab..2e779e3 100644
--- a/ui.c
+++ b/ui.c
@@ -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;
}