Windows console (as in windows ONLY, I don't recall the unix alternative but I'm sure there is one) also has an option like that. (And of course it has to do with x and y, how else would you define the coords?)
I recall reading this from somewhere else in the forums so I take no credit for the code that follows. I believe it is Duoas's...
But yes curses is the *real* way to do it. Curses is meant for console manipulation so it is more suited, but this is from windows console libraries and it's rather useful unto itself:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// Give this a row and column in integers and it will move the cursor.
void curPos(int x, int y)
i found a way to do it. bit i want to make it more simple and efficient because i want to make it much bigger. here is the code maybe you will have a better idea. it runs on an infinite loop until the user types exit. i converted the string to an integer then used a switch/case followed by a system("CLS").
i had to use two posts to fit it all. you might have to compile and run it to understand how it works.