code: def draw(self):
          
          if sys.stdout.isatty():  # pragma: no cover
              from asciimatics.screen import Screen
  
              Screen.wrapper(self._do_draw)
          else:
              for line in self.canvas:
                  print("".join(line))
docs: Draws ASCII canvas on the screen.