I just spent about an hour looking for the name of the function to move the cursor only to find out my compiler (mingw) doesn't acctualy *have* it :/
Anyone know an alternative?
I just spent about an hour looking for the name of the function to move the cursor only to find out my compiler (mingw) doesn't acctualy *have* it :/
Anyone know an alternative?
Moving the cursor isn't part of standard C. Indeed, C does not have any concept of a cursor. There are various libraries that do this, the only one I can think of is ncurses.
Woop?
On Windows you would propably use SetConsoleCursorPosition(). MSDN is your friend.
That'd be great if this were acctualy a windows console, and not a command line app
My 6 part console tutorial cover this and many other things related to console programming.
It is written in C++, but if you change the cout's to printf's most of it should work. The functions you will call will be the same of course.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Nicely laid tutorialsOriginally Posted by adrianxw
"Service of the poor and destitutes is the service of the God"
Normative Changes to ISO/IEC 9899:1990 in Technical Corrigendum 1
Incompatibilities Between ISO C and ISO C++
I don't get it. You're using MinGW, so you're using Windows. What exactly is wrong with SetConsoleCursorPosition()? What is the difference between a "windows console" and a "command line app" under Windows?Originally Posted by krappykoder