position cursor in the console

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Dear all,
I need to print in unmaaged code folowing line into console.
#blablabla#.
Where # should be rotating line(first |then/ then - then\).
How would I do that?
Thanks a lot,
 
If the message was at the beginning of a line, then you could print the text
followed by \r to return your "printing position" to the start of the line,
then keep printing the same thing over and over (changing the first
character). I think that's the easiest way.

If you need more explicit positioning, under Visual C++ you need to use the
Win32 console functions, which can be found in MSDN.

Kevin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top