diff --git a/terminatorlib/plugins/custom_commands.py b/terminatorlib/plugins/custom_commands.py index c7756c70..fa16e618 100644 --- a/terminatorlib/plugins/custom_commands.py +++ b/terminatorlib/plugins/custom_commands.py @@ -126,7 +126,7 @@ class CustomCommandsMenu(plugin.MenuItem): if command[-1] != '\n': command = command + '\n' for terminal in data['terminals']: - terminal.vte.feed_child(command.encode(terminal.vte.get_encoding())) + terminal.vte.feed_child(command.encode()) def configure(self, widget, data = None): ui = {} diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index fe7e3d74..156f8b9a 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1198,8 +1198,7 @@ class Terminal(Gtk.VBox): ### Never send a CRLF to the terminal from here txt = txt.rstrip('\r\n') for term in self.terminator.get_target_terms(self): - txt = txt.encode(self.vte.get_encoding()) - term.feed(txt) + term.feed(txt.encode()) return widgetsrc = data.terminator.terminals[int(selection_data.get_data())]