code: def display(self, messages, sig="", debug=False):
          
          full_message = "".join(
              sig + line for line in " ".join(
                  str(msg) for msg in messages
              ).splitlines(True)
          )
          if not full_message:
              full_message = sig.rstrip()
          if debug:
              printerr(full_message)
          else:
              print(full_message)
docs: Prints an iterator of messages.