Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mindar

Is there a function to set the cusor(blinking line) in a console app

This topic is 5667 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a function to set the cusor(the blinking line) in a console app back to the beginning? PLEASE RESPOND, I need to know how ASAP. Thank you very much. [edited by - Mindar on February 6, 2003 7:48:13 PM]

Share this post


Link to post
Share on other sites
Advertisement
Very easy

Need to include windows.h then these 2 lines



COORD cursor = {0, 0};
HANDLE Output = GetStdHandle(STD_OUTPUT_HANDLE);



Then whenever you want to place the cursor back to the top just:

SetConsoleCursorPosition(Output, cursor);

There ya go.

Jeff D

Share this post


Link to post
Share on other sites
Hey np I had the same question like a few months ago someone came up with that. Also if you come back to this thread really check out GameTutorials.com. They taught me a lot and is just as good of a community as this one, but much smaller so the ppl are a little closer and more helpful(sometimes). GameDev seems to be a little more profesaional, while GameTutorials aims more to the newbie programmers, and BTW goodluck on all your projects.

Jeff D

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!