Hi I am programming something and i need to use Hyperterminal to display the output, all is well but i am struggling for the right ANSI escape sequence to position the cursor to the beginning, i have tried various things including the following;
char pos [] = "\x1B[",'0',';','0','H',0;
many thanks
printf("%c[1;1f%c[J", 27, 27);
That also seems very clumsy to me - and surprisingly common!
Why not just
printf( "\x1B[1;1f\x1B[J" );
Also, if you consider code and speed consequences it's not at all efficient.
Many thanks for all your replies, its working now