class_docstr: Two dimentional buffer of :class:`.Char` instances.
class_docstr_tok: ["Two","dimentional","buffer","of",":","class",":","`",".Char","`","instances","."]
code: def __init__(
      self, default_char=None, initial_width=0, initial_height=0
  ):
      if default_char is None:
          default_char = _CHAR_CACHE[" ", Transparent]
  
      self.data_buffer = defaultdict(
          lambda: defaultdict(lambda: default_char)
      )
  
      #: Escape sequences to be injected.
      self.zero_width_escapes = defaultdict(
          lambda: defaultdict(lambda: "")
      )
  
      #: Position of the cursor.
      self.cursor_position = Point(y=0, x=0)
  
      #: Visibility of the cursor.
      self.show_cursor = True
  
      #: (Optional) Where to position the menu. E.g. at the start of a completion.
      #: (We can't use the cursor position, because we don't want the
      #: completion menu to change its position when we browse through all the
      #: completions.)
      self.menu_position = None
  
      #: Currently used width/height of the screen. This will increase when
      #: data is written to the screen.
      self.width = initial_width or 0
      self.height = initial_height or 0
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/layout/screen.py
imports: from __future__ import unicode_literals
  from prompt_toolkit.cache import FastDictCache
  from prompt_toolkit.token import Token
  from prompt_toolkit.utils import get_cwidth
  from collections import defaultdict, namedtuple
label_desc: Use image node_id 1 to create a new Screen object from inherited base classes: object with example: obj = Screen(default_char, initial_width, initial_height)