--term-osd-bar improvements

This fixes the problems that the position marker jumps further than one character at a time for a sufficiently large terminal width and that the bar gets too long if `add_term_osd_bar` is called while the current position is at 100%.