Fix cursor drawing.
Fix rendering.
Fix output of the last line of the screen buffer.
Draw selection.
Fix cursor blinking.
Simplify.
Fix selection with scrolling.
Correctly draw cursor on selection.
Don't draw cursor if there is no focus.
Cleanup.
Cleanup.
2.0 is quite usable.