rename TerminalBuffer to TerminalState.
output/html: hide cursor if cursor is off.