(self, terminal, row_start, col_start, row_end, col_end)
Final function to write a file
Final function to write a file
Final function to write a file
def write_content(self, terminal, row_start, col_start, row_end, col_end):
        """ Final function to write a file """
        content = terminal.get_text_range(row_start, col_start, row_end, col_end,
                                          lambda *a: True)
        content = content[0]
        fd = self.loggers[terminal]["fd"]
        # Don't write the last char which is always '\n'
        fd.write(content[:-1])
        self.loggers[terminal]["col"] = col_end
        self.loggers[terminal]["row"] = row_end
def write_content ( self , terminal , row_start , col_start , row_end , col_end ) : content = terminal . get_text_range ( row_start , col_start , row_end , col_end , lambda * a : True ) content = content [ 0 ] fd = self . loggers [ terminal ] [ "fd" ] # Don't write the last char which is always '\n' fd . write ( content [ : - 1 ] ) self . loggers [ terminal ] [ "col" ] = col_end self . loggers [ terminal ] [ "row" ] = row_end