Fix bug where scrollRect:downBy: would wrap around and copy lines from the top of the buffer down to the middle/end. Fix bug where terminalDeleteLinesAtCursor did all kinds of things wrong. Write tests for it.