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 __init__(
      self,
      style,
      output,
      use_alternate_screen=False,
      mouse_support=False,
  ):
      assert isinstance(style, Style)
      assert isinstance(output, Output)
  
      self.style = style
      self.output = output
      self.use_alternate_screen = use_alternate_screen
      self.mouse_support = to_cli_filter(mouse_support)
  
      self._in_alternate_screen = False
      self._mouse_support_enabled = False
      self._bracketed_paste_enabled = False
  
      # Waiting for CPR flag. True when we send the request, but didn't got a
      # response.
      self.waiting_for_cpr = False
  
      self.reset(_scroll=True)
  
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 1 to create a new Renderer object from inherited base classes: object with example: obj = Renderer(style, output, use_alternate_screen, mouse_support)