#NEWLINE# def report_device_status( self , data ) : #NEWLINE# #INDENT# '\n        Report cursor position.\n        ' #NEWLINE# if ( data == 6 ) : #NEWLINE# #INDENT# y = ( ( self . pt_cursor_position . y - self . line_offset ) + 1 ) #NEWLINE# x = ( self . pt_cursor_position . x + 1 ) #NEWLINE# response = ( '\x1b[%i;%iR' % ( y , x ) ) #NEWLINE# self . write_process_input ( response )