I know that to update something like a progress bar on the command line, one uses '\r'. Is there any way to update multiple lines?
+1
A:
You can use VT100 codes to reposition the cursor on a higher line, then overdraw it with your updated status.
bdonlan
2009-11-13 04:41:46
+1
A:
The Curses library offers powerful control for console UIs.
Suppressingfire
2009-11-13 04:42:24
+1
A:
The best way is to use some existing library like ncurses. But you may try dirty workaround by clearing console with system call system("cls");
doc
2009-11-13 04:42:40
Is system("cls") Windows-only?
yodie
2009-11-13 04:52:01
On Linux there is "clear"
doc
2009-11-13 04:57:04
What about OS X?
yodie
2009-11-13 05:05:02
OS X core Darwin is Unix compliant and it should have "clear" along with other Unix-like systems.
doc
2009-11-13 05:11:46
Awesome. Thanks.
yodie
2009-11-13 05:30:31