Well?
Printable View
Well?
Is this a console or a GUI app? Are you using an edit box or simply displaying the caret?
for a console app, use ansi control codes
for cursor position -- escape [ row ; col H
Code:char esc = 27;
printf("%d%s",esc,"[1;1H");
Yep a console app. Your answer just prints '27[1;1H', jim.