How do I delete 2 lines in a windows terminal using C?
I know that I can move to the beginning of a line using "\r".
But neither printf("\r\r"); nor printf("\r\b\r"; work.
A windows TErminal is not VT100 compliant, or I haven't figured out how to use VT100 in a windows terminal.
Name:
Anonymous2010-02-17 11:07
\r\n is a DOS newline.
Name:
Anonymous2010-02-17 11:12
You can't.
ncurses.
Name:
Anonymous2010-02-17 11:14
You mean you want to go from: One line
Two line
Three line
Four line
... to: One line
Two line
... in the Command Prompt, real time?
Name:
Anonymous2010-02-17 11:25
>>4
yes >>3
ncurses on windows? I thought it was a linux thing.
Do like Dwarf Fortress and use OpenGL to draw the console window. Do 10 API calls per character, one of which is glFinish(), to make it feel authentic.