▲ | sfink 5 days ago | |
Carriage returns are good enough for progress bars, and seem to work fine in my emacs shell at least:
works fine for me, and that's with TERM set to "dumb". (I'm actually not sure why it cleared the line automatically though. I'm used to doing "\rmessage " to clear out the previous line.)Admittedly, that'll spew a bunch of stuff if you're sending it to a pager, so I guess that ought to be
but I still haven't made it to 15 dependencies or 200 lines of code! I don't get a full-screen progress bar out of it either, but that's where I agree with you. I don't want one. | ||
▲ | JdeBP 5 days ago | parent [-] | |
The problem is that two pagers don't do everything that they should do in this regard. They are supposed to do things like ul utility does, but neither BSD more nor less handle when a CR is emitted to overstrike the line from the beginning. They only handle overstriking characters with BS. most handles overstriking with CR, though. Your output appears as intended when you page it with most. |