#NEWLINE# @ classmethod #NEWLINE# def from_pty( cls , stdout , true_color = False , term = None ) : #NEWLINE# #INDENT# '\n        Create an Output class from a pseudo terminal.\n        (This will take the dimensions by reading the pseudo\n        terminal attributes.)\n        ' #NEWLINE# def get_size( ) : #NEWLINE# #INDENT# ( rows , columns ) = _get_size ( stdout . fileno ( ) ) #NEWLINE# return Size ( rows = rows , columns = columns ) #NEWLINE# #UNINDENT# return cls ( stdout , get_size , true_color = true_color , term = term )