aboutsummaryrefslogtreecommitdiff
path: root/lowbat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lowbat.c')
-rw-r--r--lowbat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lowbat.c b/lowbat.c
index bfdadf2..572873a 100644
--- a/lowbat.c
+++ b/lowbat.c
@@ -154,7 +154,7 @@ int main() {
}
if (discharging != old_discharging || capacity != old_capacity) {
- printf("\r%s%d%%", discharging ? "-" : "+", capacity);
+ printf("%s%d%%\n", discharging ? "-" : "+", capacity);
fflush(stdout);
}
old_discharging = discharging;