diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:13:35 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:13:35 -0500 |
commit | 17e0bbaecb917b7cb42453afa9cd7e80e092c087 (patch) | |
tree | 3da04e24c906894938e3ac4acb17b82660c45c4b /lowbat.c | |
parent | 60e0bae28e5bb53652802a3779dc604c75906208 (diff) | |
download | lowbat-17e0bbaecb917b7cb42453afa9cd7e80e092c087.tar.xz lowbat-17e0bbaecb917b7cb42453afa9cd7e80e092c087.zip |
output newlines instead of carriage returns to make lowbat more versatile
Diffstat (limited to 'lowbat.c')
-rw-r--r-- | lowbat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |