Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Paskal like functions (http://www.programmingforums.org/showthread.php?t=12327)

pegasus001 Jan 8th, 2007 2:19 PM

Paskal like functions
 
Hello everybody, me and my girlfriend wanted to convert some of the paskal most beautiful features in c++. Some of them are gotoxy(x_coord, y_coord), delline etc.

My question is :

How on earth do i move the cursor to any part of the console screen i want?

Does any one of you have any ideas?

DaWei Jan 8th, 2007 6:05 PM

Controlling the positioning and so forth on the console is not part of the C/C++ language. That means it's implementation dependent. It depends on the hardware implementation as well as the OS. If you're talking about Windows on an Intel (or similar) platform, see the console section of the WIN API. For Unix derivatives, I believe (without knowing, these days) that you will need things like unistd and termio.

I have some example code for the Windows console API that I could dig up, if need be. The conio functions that used to deliver with DevCpp used this API.

pegasus001 Jan 9th, 2007 5:50 AM

please if you post them or post any web address i would be very grateful. Thank you

LOI Kratong Jan 9th, 2007 7:11 AM

www.google.co.uk

lectricpharaoh Jan 9th, 2007 11:55 AM

What platform are you wanting this for, pegasus? If it's for a Windows console program, I've got code somewhere to do a lot of this stuff (easier than calling the Win32 API, but not by much, since the console API functions aren't that complex). If that's your platform, let me know, and I'll see about posting some code in the next couple days, depending how busy I am.

pegasus001 Jan 9th, 2007 4:03 PM

Yes i am curently programming in windows with visual studio 2005.

DaWei Jan 9th, 2007 4:54 PM

See this thread.


All times are GMT -5. The time now is 1:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC