class_docstr: Typical usage:
  
  ::
  
      output = Vt100_Output.from_pty(sys.stdout)
      r = Renderer(style, output)
      r.render(cli, layout=...)
class_docstr_tok: ["Typical","usage",":",":",":","output","=","Vt100_Output.from_pty","(","sys.stdout",")","r","=","Renderer","(","style",",","output",")","r.render","(","cli",",","layout=","...",")"]
docstr: Hide all output and put the cursor back at the first line. This is for
  instance used for running a system command (while hiding the CLI) and
  later resuming the same CLI.)
  
  :param leave_alternate_screen: When True, and when inside an alternate
      screen buffer, quit the alternate screen.
  :param erase_title: When True, clear the title from the title bar.
docstr_tok: ["Hide","all","output","and","put","the","cursor","back","at","the","first","line",".","This","is","for","instance","used","for","running","a","system","command","(","while","hiding","the","CLI",")","and","later","resuming","the","same","CLI",".",")",":","param","leave_alternate_screen",":","When","True",",","and","when","inside","an","alternate","screen","buffer",",","quit","the","alternate","screen",".",":","param","erase_title",":","When","True",",","clear","the","title","from","the","title","bar","."]
code: def erase(self, leave_alternate_screen=True, erase_title=True):
      """
      Hide all output and put the cursor back at the first line. This is for
      instance used for running a system command (while hiding the CLI) and
      later resuming the same CLI.)
  
      :param leave_alternate_screen: When True, and when inside an alternate
          screen buffer, quit the alternate screen.
      :param erase_title: When True, clear the title from the title bar.
      """
      output = self.output
  
      output.cursor_backward(self._cursor_pos.x)
      output.cursor_up(self._cursor_pos.y)
      output.erase_down()
      output.reset_attributes()
      output.enable_autowrap()
      output.flush()
  
      # Erase title.
      if self._last_title and erase_title:
          output.clear_title()
  
      self.reset(leave_alternate_screen=leave_alternate_screen)
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.filters import to_cli_filter
  from prompt_toolkit.layout.mouse_handlers import MouseHandlers
  from prompt_toolkit.layout.screen import Point, Screen, WritePosition
  from prompt_toolkit.output import Output
  from prompt_toolkit.styles import Style
  from prompt_toolkit.token import Token
  from prompt_toolkit.utils import is_windows
  from six.moves import range
label_desc: Use image node_id 8 for calling the Renderer obj's underlying member method code with example usage: obj.erase(leave_alternate_screen, erase_title) without return types