Skip to content
  • Avi Halachmi's avatar
    progress: shorten bar to prevent newlines on some terminals · 515f31eb
    Avi Halachmi authored and Timo Teräs's avatar Timo Teräs committed
    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% []").
    515f31eb