Thread: Output to screen display issues

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    1

    Question Output to screen display issues

    I am using an old C++ compiler (Borland Turbo C++ 3.1) for Windows 3.1 on my Windows 98 system. It's been a few years since I've had a couple of C++ classes, so I may be doing something dumb. But the "screen" results of any program that I write always appear in a small window (I think its a DOS window.) Two questions: How do I enlarge that window to fit the screen? And, if my results are larger than the current screen size, what options do I have for pausing the output once the screen is full? Any help would be appreciated.

    Thanks,

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    362
    spaz,

    Research the Board for sizing the screen. Frankly, on console app's., I live with the default screen. Just me.

    The easiest way to pause the output is to simply do a line count and pause after, say, 20 lines are output. The default screen is 80 x 25, so 20 lines should hold a screen's worth of output provided you're not wrapping lines with a single 'cout' statement.

    Rather depends on your formatting, too. I can't stand output that's so crammed together that it's barely readable. Play with it until it suits your tastes.

    -Skipper
    "When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow

  3. #3
    Attack hamster fuh's Avatar
    Join Date
    Dec 2002
    Posts
    176
    Use clrscr() in conio.h.
    Stupid things pop singers say

    "I get to go to lots of overseas places, like Canada."
    - Britney Spears

    "I love what you've done with the place!"
    -Jessica Simpson upon meeting the Secretary of Interior during tour of the White House

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    362
    Use clrscr() in conio.h.
    I've had output that required the use of clrscr() desperately , but spazjr01 is looking to pause the display before it scrolls, not clear the screen entirely.

    Now, that being said, we could play off of that idea a little by supposing that there may be various prompts for user input which, of course, consumes screen space in a console application.

    When the prompting is complete, we could, very easily, clear the screen prior to displaying our output. (I'm thinking this is where your suggestion comes in, fuh. )

    -Skipper
    "When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. output display in screen required
    By imagetvr in forum C++ Programming
    Replies: 9
    Last Post: 08-19-2008, 09:55 PM
  2. Direct output to screen
    By maxorator in forum Windows Programming
    Replies: 2
    Last Post: 10-30-2006, 03:00 PM
  3. Cursor React to Screen Display
    By Lugtz in forum Windows Programming
    Replies: 5
    Last Post: 10-22-2004, 09:51 PM
  4. Replies: 1
    Last Post: 04-01-2002, 03:08 PM
  5. Screen display
    By neandrake in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 02-25-2002, 08:56 PM