Re:How does apt render its fancy progress bar?
by fiddlerwoaroof on Wednesday October 13, 2021 @11:42AM
(#28853617)
Until your program is run in a emacs window (lint-staged’s progress bars mess up magit’s output buffer, making it really difficult to figure out what the problem is) or is piped through grep.
tput will do the right thing because of terminfo, hand-coded escape sequences will make someone curse you.
That’s the world of terminals. There’s no sign that the way terminals work is going to change. These standard escape sequences are old.