Thread: so if you want to move something around screen...

  1. #1

    so if you want to move something around screen...

    you can use gotoxy instead of moving through an array?

  2. #2
    forgot to add: in DOS

  3. #3
    Registered User
    Join Date
    Jan 2002
    Yes, but gotoxy is a nonstandard function, so if you want to distribute your code, it is best to make your own gotoxy function.

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    in true DOS you can set the cursor position by calling a software interrupt. Cant remember which one. Ask bubba or doubleanti. It is also possible to write directly to video addresses.
    In windows console all of this info is invalid and instead you can use gotoxy() which is a non standard function. If you have it then it will be in <conio.h>. If you do not have it do not fret just whizz over to the FAQ and you will find a simple implementation of it that will work on any windows compiler.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux Problem Screen Resoultion
    By Matus in forum Tech Board
    Replies: 1
    Last Post: 01-29-2009, 04:39 PM
  2. [C] GDI: how to erase material drawn at an entire screen DC
    By pc2-brazil in forum Windows Programming
    Replies: 3
    Last Post: 01-24-2009, 07:24 PM
  3. Screen coordinates and mouse pointer manipulation
    By Zewu in forum Windows Programming
    Replies: 1
    Last Post: 03-25-2005, 05:30 PM
  4. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  5. Console Screen Buffer
    By GaPe in forum Windows Programming
    Replies: 0
    Last Post: 02-06-2003, 05:15 AM