cursor movement

This is a discussion on cursor movement within the C++ Programming forums, part of the General Programming Boards category; When my program opens in a DOS-prompt, how can I move the cursor vertically? If someone could help me out ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    126

    Question cursor movement

    When my program opens in a DOS-prompt, how can I move the cursor vertically? If someone could help me out with this it would be great.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    gotoxy(int X, int Y);
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    mad_programma
    Guest

    Question

    go to www.dosprogramming.com and under code is the answer

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    23
    This maybe off the point but I've seen something similar before.

    Do just want to view output from a program that has scrolled off the screen? If so you could pipe it into more like this:

    >ProgramName.exe | more

    Sorry if this is totally of the point

    Brif

  5. #5
    Registered User Gnoober's Avatar
    Join Date
    Oct 2002
    Posts
    40
    Originally posted by brif
    This maybe off the point but I've seen something similar before.

    Do just want to view output from a program that has scrolled off the screen? If so you could pipe it into more like this:

    >ProgramName.exe | more

    Sorry if this is totally of the point

    Brif
    Is that linux\unix specific?
    - Grady (:

  6. #6
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Originally posted by Gnoober
    Is that linux\unix specific?
    Rather Windows-specific, altough it might exist in unix too.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  7. #7
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    I didn't know you could pipe in windows. Thought it was a Unix feature...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  8. #8
    Registered User
    Join Date
    Apr 2002
    Posts
    23
    I'm sure windows command prompt did allow for pipes, perhaps I'm just getting old, however..

    I tested it under XP and it is fine but under Win98 it dosent work :-( Perhaps I have just got a badly configured win98 box?

    Another way to allow you to scroll up in the command prompt on newer versions of windows ( XP and NT I think?) is to right click the command prompt window and change the scrollbar setting in one of the tabs.

    Although this probably wasnt the problem in the first place!

    Brif

    P.S I'm going to ask for a walking stick from santa this year

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21