Fixes Issue #1181 . At high resolutions, the console buffer isn't large enough, and was causing a wraparound.