It looks like this only clears one line, but the docstring says it clears the output area. Is it straightforward in the Qt console to clear the whole of the current output? We should either do so, or update the docstring.