Thread: Limiting Console Output

  1. #1
    Registered User JKI's Avatar
    Join Date
    Sep 2003
    Posts
    19

    Question Limiting Console Output

    Quick (and probably stupid) question:

    My program retrieves records from a binary file.

    I want the ouput of my records search to stop when the screen is full (or, say 20 records worth of data); I thought I'd do this with a loop, but am unsure if there is a function for "stopping" output when the screen is "full" before displaying the full 20 records.

    Does such a creature exist?
    "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."-Einstein

  2. #2
    Master of the Universe! velius's Avatar
    Join Date
    Sep 2003
    Posts
    219
    None that I know of. Since you have 25 lines to print on I always used 24 and on the 25th line I'd print "-More-" and wait for a key stroke to continue.
    While you're breakin' down my back n'
    I been rackin' out my brain
    It don't matter how we make it
    'Cause it always ends the same
    You can push it for more mileage
    But your flaps r' wearin' thin
    And I could sleep on it 'til mornin'
    But this nightmare never ends
    Don't forget to call my lawyers
    With ridiculous demands
    An you can take the pity so far
    But it's more than I can stand
    'Cause this couchtrip's gettin' older
    Tell me how long has it been
    'Cause 5 years is forever
    An you haven't grown up yet
    -- You Could Be Mine - Guns N' Roses

  3. #3
    Registered User JKI's Avatar
    Join Date
    Sep 2003
    Posts
    19
    Okay. Was worth a shot.

    Easy enough to work around.

    Thanks:: Jazz
    "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."-Einstein

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to get the console output
    By outlawbt in forum Windows Programming
    Replies: 2
    Last Post: 03-19-2008, 02:25 PM
  2. redirect console output to a String?
    By TwistedMetal in forum C Programming
    Replies: 10
    Last Post: 02-26-2008, 02:54 PM
  3. Help with Console output
    By JeremyCAFE in forum C++ Programming
    Replies: 4
    Last Post: 12-20-2005, 10:36 AM
  4. Replies: 4
    Last Post: 11-30-2005, 04:44 PM
  5. Redirecting console output
    By _hannes in forum Windows Programming
    Replies: 3
    Last Post: 11-04-2004, 04:51 AM