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=","...",")"]
code: def reset(self, _scroll=False, leave_alternate_screen=True):
      # Reset position
      self._cursor_pos = Point(x=0, y=0)
  
      # Remember the last screen instance between renderers. This way,
      # we can create a `diff` between two screens and only output the
      # difference. It's also to remember the last height. (To show for
      # instance a toolbar at the bottom position.)
      self._last_screen = None
      self._last_size = None
      self._last_token = None
  
      # When the style hash changes, we have to do a full redraw as well as
      # clear the `_attrs_for_token` dictionary.
      self._last_style_hash = None
      self._attrs_for_token = None
  
      # Default MouseHandlers. (Just empty.)
      self.mouse_handlers = MouseHandlers()
  
      # Remember the last title. Only set the title when it changes.
      self._last_title = None
  
      #: Space from the top of the layout, until the bottom of the terminal.
      #: We don't know this until a `report_absolute_cursor_row` call.
      self._min_available_height = 0
  
      # In case of Windown, also make sure to scroll to the current cursor
      # position. (Only when rendering the first time.)
      if is_windows() and _scroll:
          self.output.scroll_buffer_to_prompt()
  
      # Quit alternate screen.
      if self._in_alternate_screen and leave_alternate_screen:
          self.output.quit_alternate_screen()
          self._in_alternate_screen = False
  
      # Disable mouse support.
      if self._mouse_support_enabled:
          self.output.disable_mouse_support()
          self._mouse_support_enabled = False
  
      # Disable bracketed paste.
      if self._bracketed_paste_enabled:
          self.output.disable_bracketed_paste()
          self._bracketed_paste_enabled = False
  
      # Flush output. `disable_mouse_support` needs to write to stdout.
      self.output.flush()
  
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 2 for calling the Renderer obj's underlying member method code with example usage: obj.reset(_scroll, leave_alternate_screen) without return types