I am using Dev C++ v5.6.1 IDE on Windows7.
I have written a C code which has hundreds of line that are displayed as output on screen.
The buffer size of Console Windows is small and I cannot view the initial printf statements. I tried it changing from "properties" option, but it didn't help.
Where Can I find the option to increase the console window buffer size.
As you're using Windows, a simple way you can do this is by changing the console window size with the batch command:
mode con: cols=150 lines=50
. cols adjusts width, lines adjusts height.You may choose to call this with system to set the console size.
This is considered bad, more about that here.
A safer way to do this, is changing the buffer and size using functions defined in
<windows.h>
.Here is a small example illustrating this:
Keep in mind that the function
SetConsoleWindowInfo
fails if the specified window rectangle extends beyond the boundaries of the console screen buffer. More about that here.