diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2017-03-28 16:08:50 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-03-29 08:14:39 +0300 |
commit | 515f31eb528326c2275c08f7a0373e1529b4fb3e (patch) | |
tree | 94f26f2b0028a22da0d907e7170af4779ef5f70f /src/ver.c | |
parent | bcb4b06ff86b3305d01a3aa7b22213d1349c737a (diff) | |
download | apk-tools-515f31eb528326c2275c08f7a0373e1529b4fb3e.tar.gz apk-tools-515f31eb528326c2275c08f7a0373e1529b4fb3e.tar.bz2 apk-tools-515f31eb528326c2275c08f7a0373e1529b4fb3e.tar.xz apk-tools-515f31eb528326c2275c08f7a0373e1529b4fb3e.zip |
progress: shorten bar to prevent newlines on some terminals
On some (probably buggy) terminals, printing up to the rightmost column
may end up with the terminal issueing a newline (probably due to putting
the cursor at the next char -> new line).
Some other progress bars avoid it by not reaching the rightmost column.
Shorten the bar width from term-width - 7 to -8 (the 7 are "xxx% []").
Diffstat (limited to 'src/ver.c')
0 files changed, 0 insertions, 0 deletions