How to increase the scrollback history of the Python console/terminal within Blender?
You can do this by going to User Preferences > System and changing the value in Console Scrollback under the General category. It's set to 256 by default.