summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-13 22:39:57 +0000
committerdavidovski <david@davidovski.xyz>2022-02-13 22:39:57 +0000
commit04e80e5ceadee536ccfe0315c835ac4193a32f84 (patch)
treea527d69243a639cb39c35179d40d902c3147a80c /src
parent44542b58bb94727c5708924bd414cc49fd4bafb7 (diff)
made hbar write to current line by default
Diffstat (limited to 'src')
-rw-r--r--src/hbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hbar.c b/src/hbar.c
index 27ae437..7d971c4 100644
--- a/src/hbar.c
+++ b/src/hbar.c
@@ -29,7 +29,7 @@ int main (int argc, char **argv) {
char *unit = "";
int total = 0;
int completed = 0;
- int line = 1;
+ int line = 0;
bool terminate = false;
char *color = DEFAULT_COLOR;
@@ -114,7 +114,7 @@ int main (int argc, char **argv) {
printf("\033[%dB", line, 0);
}
if (terminate) {
- printf(RESET "\r");
+ printf(RESET "\n");
}