How can I get rid of a console scrollbar?

How does one rid of the scroll bar so previous information can not be reviewed? I would like to work with this some for neatness purposes. I was told that the function protocol lies within the windows.h library. This may easily be wrong since the guy who I heard this from hasn't done anything with C/C++ in years.

Help is greatly appreciated. Thanks.
Last edited on
A bit of Googling gives me that to avoid scroll bars you need to set the console screen buffer size to the size of your screen. Here's an old post I found that had a bit of code:
http://cboard.cprogramming.com/windows-programming/43203-disable-console-scrollbar.html

Note that the code has an error in it that is addressed a post or two down.
Topic archived. No new replies allowed.