-
moving up a line or more
Ok, so I asked a question about refreshing a number, but you guys gave me an answer that was just to use.
printf("\b");
Which was fine, but now I want to know if there is a way to move back up a line or more (similar to \r returns you to the beginning). So does anyone know of a way to do that??
-
I wasn't very clear on that... let me help
if I did this
printf("blah1\n");
printf("blah2\n");
printf("blah3\n");
Since blah3 was the last thing printed, is there a way to get back up to blah 1 or 2 to possibly use the printf("\b"); to edit it?
-
Either you have to use OS dependant code, or Curses to do things like that, most likely neither is worth it for your project.
-