Thread: gotoxy(int x, int y) and clrsrcn(int backolor, forecolor) for Visual Studio C++ 6.0?

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    7

    Question gotoxy(int x, int y) and clrsrcn(int backolor, forecolor) for Visual Studio C++ 6.0?

    Hi.

    I am making a simple console program. (Is console what I call those run in "DOS" type program?)

    May I know for Visual Studio C++ 6.0, what is the equivalent functions for:
    gotoxy(int x, int y) //Position cursor to coordinates x, y
    clrscrn(int backcolor, int forecolor) //Set the screen to colors stated

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    84
    There's no equivalent functions to these, but you can use Win32Api to do it. Read console tutorials from http://www.adrianxw.dk/SoftwareSite/index.html and know.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    From the FAQ, here's gotoxy() in a Windows Console .
    Here's clearing the screen . It's the last option listed.

    You can probably modify the call to FillConsoleOutputAttribute() to set colors.

Popular pages Recent additions subscribe to a feed