class_docstr: Represent a single character in a :class:`.Screen`.
  
  This should be considered immutable.
class_docstr_tok: ["Represent","a","single","character","in","a",":","class",":","`",".Screen","`",".","This","should","be","considered","immutable","."]
code: def __init__(self, char=" ", token=Token):
      # If this character has to be displayed otherwise, take that one.
      char = self.display_mappings.get(char, char)
  
      self.char = char
      self.token = token
  
      # Calculate width. (We always need this, so better to store it directly
      # as a member for performance.)
      self.width = get_cwidth(char)
  
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 Char object from inherited base classes: object with example: obj = Char(char, token)