Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TerminalExporter fails to work with version 1.91 of terminator #10

Open
robertwhitton opened this issue Dec 6, 2017 · 0 comments
Open

Comments

@robertwhitton
Copy link

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()


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant