summaryrefslogtreecommitdiff
path: root/src/hbar.c
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-20 22:20:50 +0000
committerdavidovski <david@davidovski.xyz>2022-02-20 22:20:50 +0000
commit2fcc1fa648b1594eda18935f9590a94971fae616 (patch)
tree5c1c3dd0cea2046addb6d2c0a21066bdf87487d5 /src/hbar.c
parent89539c200bf93d53ee9b91b521c09bd4607e01d0 (diff)
added xi glyphv1.0
Diffstat (limited to 'src/hbar.c')
-rw-r--r--src/hbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hbar.c b/src/hbar.c
index 17840d8..64e91b7 100644
--- a/src/hbar.c
+++ b/src/hbar.c
@@ -118,7 +118,7 @@ int main (int argc, char **argv) {
printf(RESET "\r");
printf(color);
- for (int i = 0; i < width; i++) {
+ for (int i = 0; i <= width; i++) {
int reset_at = 0;
if (total > 0) {
float percent = (float) completed / (float) total;
@@ -139,7 +139,7 @@ int main (int argc, char **argv) {
}
if (line != -1) {
- printf("\033[%dB", line, 0);
+ printf("\033[%dB", line);
}
if (terminate) {
printf(RESET "\n");