Thread: Holding the Console Still

  1. #1
    Registered User mdshort's Avatar
    Join Date
    Dec 2003
    Posts
    6

    Holding the Console Still

    Is there some way to make it so that when you add text to the window it doesnt scroll down with it? I'm planning to have a help screen with alot of text which will no doubt pass the default screen size. And I know theres a way, that when they push the up or down arrows to scroll by pages through the help text?

  2. #2
    Disturbed Boy gustavosserra's Avatar
    Join Date
    Apr 2003
    Posts
    244
    cin.get();
    Nothing more to tell about me...
    Happy day =)

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Is there some way to make it so that when you add text to the window it doesnt scroll down with it?
    It depends on how sophisticated you want to get with it. You can simply break off output until the user signals that she is ready to read more, or you can save the output to memory and allow the user to print pages at will. Both of these can be done fairly portably. If you want to control actual scrolling, you need to take control of the console, which basically means something nonportable such as Win32 or curses (though curses have been ported to several platforms).
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console, Terminal and Terminal Emulator
    By lehe in forum C Programming
    Replies: 4
    Last Post: 02-15-2009, 09:59 PM
  2. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  3. Problems with a simple console game
    By DZeek in forum C++ Programming
    Replies: 9
    Last Post: 03-06-2005, 02:02 PM
  4. Console Functions Help
    By Artist_of_dream in forum C++ Programming
    Replies: 9
    Last Post: 12-04-2004, 03:44 AM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM