ConsoleOut instance that is backed by System.out.
ConsoleOut instance that is backed by System.out. It overwrites the previously printed line
if the function f(lineToWrite, previousLine)
returns true.
The ConsoleOut returned by this method assumes that the only newlines are from println calls and not in the String arguments.