Adds scrollback support and mouse-operations.