Make clear() a noop if not connected to a terminal.