View Single Post
Old Jan 8th, 2007, 6:05 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Controlling the positioning and so forth on the console is not part of the C/C++ language. That means it's implementation dependent. It depends on the hardware implementation as well as the OS. If you're talking about Windows on an Intel (or similar) platform, see the console section of the WIN API. For Unix derivatives, I believe (without knowing, these days) that you will need things like unistd and termio.

I have some example code for the Windows console API that I could dig up, if need be. The conio functions that used to deliver with DevCpp used this API.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote