Skip to content

TerminalExporter fails to work with version 1.91 of terminator #10

@robertwhitton

Description

@robertwhitton

It can be fixed with this patch but obviously this may not work with older versions.

@@ -126,7 +126,8 @@
         vte = terminal.get_vte()
         (start_row, end_row, end_column) = self.get_vte_buffer_range(vte)
         content = vte.get_text_range(start_row, 0, end_row, end_column,
-                                     lambda widget, col, row, junk: True)
+                                     lambda *a: True)
+        content = content[0]
         filename = self.get_filename()
         with open(filename, "w") as output_file:
             output_file.writelines(str(content))
@@ -169,7 +170,8 @@
         parameter = self.logging_terminals[terminal]
         if end_row > parameter.last_logged_line:
             content = vte.get_text_range(parameter.last_logged_line, 0, end_row, end_column,
-                                         lambda widget, col, row, junk: True)
+                                         lambda *a: True)
+            content = content[0]
             with open(parameter.filename, "a") as output_file:
                 output_file.writelines(content)
                 output_file.close()


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions