In a terminal, if I'm outputting a one-line progress indicator of some sort, in-place, \r
would do the trick:
while (1) { echo "progress indication\r"; }
However, I have a progress indicator that really should be multi-line. As \r
only returns to the start of the current line, I want something that can move up a couple of lines. Is there a control character/function that allows me to step back lines in the terminal?
Edit: in case I wasn't completely clear, I wish to have something roughly the opposite of \v
, the vertical tab, which moves the terminal cursor down a line.