
October 14th, 2009, 04:50 AM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 1
Time spent in forums: 7 m 36 sec
Reputation Power: 0
|
|
|
Positioning the cursor
hi
Basically i need to find a snippet of code that allows the cursor the be returned to the top of the page in a console application. I want to clear the screen and then return the cursor to the top so it looks like iv'e just opened it.
So far i have been using this code:
Code:
nConsoleHandle := GetStdHandle(STD_OUTPUT_HANDLE);
FillConsoleOutputCharacter(nConsoleHandle, #32, 80*24, Coord, lwWritten);
unfortunatly it doesn't return the curser to the top of the console so i have to carry on writing further down the page.
Sorry if this has been hard to understand
Thanks,
Pompalomp
|