#NEWLINE# def draw( self ) : #NEWLINE# #INDENT# pyglet . text . begin ( ) #NEWLINE# glPushMatrix ( ) #NEWLINE# glTranslatef ( 0 , self . height , 0 ) #NEWLINE# for line in self . lines [ : : ( - 1 ) ] : #NEWLINE# #INDENT# line . draw ( ) #NEWLINE# glTranslatef ( 0 , ( - self . font . glyph_height ) , 0 ) #NEWLINE# #UNINDENT# line = ( self . get_prompt ( ) + self . buffer ) #NEWLINE# if ( ( self . __last is None ) or ( line != self . __last [ 0 ] ) ) : #NEWLINE# #INDENT# self . __last = ( line , pyglet . text . layout_text ( line . strip ( ) , font = self . font ) ) #NEWLINE# #UNINDENT# self . __last [ 1 ] . draw ( ) #NEWLINE# glPopMatrix ( ) #NEWLINE# pyglet . text . end ( )