#NEWLINE# def __init__( self , default_char = None , initial_width = 0 , initial_height = 0 ) : #NEWLINE# #INDENT# if ( default_char is None ) : #NEWLINE# #INDENT# default_char = _CHAR_CACHE [ ( ' ' , Transparent ) ] #NEWLINE# #UNINDENT# self . data_buffer = defaultdict ( ( lambda : defaultdict ( ( lambda : default_char ) ) ) ) #NEWLINE# self . cursor_position = Point ( y = 0 , x = 0 ) #NEWLINE# self . show_cursor = True #NEWLINE# self . menu_position = None #NEWLINE# self . width = ( initial_width or 0 ) #NEWLINE# self . height = ( initial_height or 0 )