ANSI escape sequences: save and restore a row position
问题 I'm writing a very simple little console application and I'm playing around with some ANSI escape sequences to get some nicer output. What I'm trying to do is something like this. There's a header with a name, and then underneath, as the program runs, several lines are printed. As each line is printed, I'd like to update the header row with a progress meter. eg: My header row [ 0/5 ] ------------------------------------- then after some processing My header row [ 1/5 ] -----------------------