Prevent console from scrolling beyond buffer.
Fixes bug: when there are less lines than console rows, scrolling backwards renders the buffer twice.
Fixes bug: when there are less lines than console rows, scrolling backwards renders the buffer twice.