Fix string-cleaning code. Would hang on invalid UTF-8.
don't trigger scrollback indicator if only one line gets added
fix retrospective scrolling on opening
add a marker line, that keeps track of the equivalent of a 'last read' state of the console