Commits

nakamura committed 8870d74

API seems to be changed

Comments (0)

Files changed (1)

     def do_terminal_child_exited(self, *args):
         self._sync_check.set_active(False)
         msg = '\n[Press Enter to restart command]'
-        self.terminal.feed(msg, len(msg))
+        self.terminal.feed(msg)
         self.terminal.connect('commit', self.do_terminal_commit)
 
     def do_terminal_commit(self, term, text, length):
         if text in ('\n', '\r', '\r\n'):
             self.terminal.disconnect_by_func(self.do_terminal_commit)
-            self.terminal.feed('\r\n', 2)
+            self.terminal.feed('\r\n')
 
             # to avoid this input being feeded to this command,
             # call run_command after this callback