feed_child() only accepts UTF-8, so that's what we'll send for now
This commit is contained in:
parent
a55356ec8d
commit
040b828ed1
|
@ -126,7 +126,7 @@ class CustomCommandsMenu(plugin.MenuItem):
|
||||||
if command[-1] != '\n':
|
if command[-1] != '\n':
|
||||||
command = command + '\n'
|
command = command + '\n'
|
||||||
for terminal in data['terminals']:
|
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):
|
def configure(self, widget, data = None):
|
||||||
ui = {}
|
ui = {}
|
||||||
|
|
|
@ -1198,8 +1198,7 @@ class Terminal(Gtk.VBox):
|
||||||
### Never send a CRLF to the terminal from here
|
### Never send a CRLF to the terminal from here
|
||||||
txt = txt.rstrip('\r\n')
|
txt = txt.rstrip('\r\n')
|
||||||
for term in self.terminator.get_target_terms(self):
|
for term in self.terminator.get_target_terms(self):
|
||||||
txt = txt.encode(self.vte.get_encoding())
|
term.feed(txt.encode())
|
||||||
term.feed(txt)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
widgetsrc = data.terminator.terminals[int(selection_data.get_data())]
|
widgetsrc = data.terminator.terminals[int(selection_data.get_data())]
|
||||||
|
|
Loading…
Reference in New Issue