Lots of changes. Scrolling, clearing, size adjustments and fixes. Handling of newlines, backspace, tabs, and more.