From 4c19ec151cf8dad459bd9b50e47bf28c642ebe57 Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Tue, 21 Apr 2020 12:54:56 -0400 Subject: [PATCH] fix exception when feeding terminal number to terminal --- terminatorlib/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 64a14bdd..3dfce41a 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1538,7 +1538,7 @@ class Terminal(Gtk.VBox): def feed(self, text): """Feed the supplied text to VTE""" - self.vte.feed_child(text, len(text)) + self.vte.feed_child_binary(text.encode(self.vte.get_encoding())) def zoom_in(self): """Increase the font size"""