#NEWLINE# def delete_lines( self , count = None ) : #NEWLINE# #INDENT# 'Deletes the indicated # of lines, starting at line with\n        cursor. As lines are deleted, lines displayed below cursor\n        move up. Lines added to bottom of screen have spaces with same\n        character attributes as last line moved up.\n\n        :param int count: number of lines to delete.\n        ' #NEWLINE# count = ( count or 1 ) #NEWLINE# ( top , bottom ) = self . margins #NEWLINE# line_offset = self . line_offset #NEWLINE# pt_cursor_position = self . pt_cursor_position #NEWLINE# if ( top <= ( pt_cursor_position . y - line_offset ) <= bottom ) : #NEWLINE# #INDENT# data_buffer = data_buffer . data_buffer #NEWLINE# for line in range ( ( pt_cursor_position . y - line_offset ) , ( bottom + 1 ) ) : #NEWLINE# #INDENT# if ( ( line + count ) > bottom ) : #NEWLINE# #INDENT# data_buffer . pop ( ( line + line_offset ) , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data_buffer [ ( line + line_offset ) ] = self . data_buffer [ ( ( line + count ) + line_offset ) ]