213 Private method to send data to the shell process. |
213 Private method to send data to the shell process. |
214 |
214 |
215 @param data data to be sent to the shell process (string) |
215 @param data data to be sent to the shell process (string) |
216 """ |
216 """ |
217 pdata = QByteArray() |
217 pdata = QByteArray() |
218 pdata.append(data) |
218 pdata.append(bytes(data, encoding="utf-8")) |
219 self.__process.write(pdata) |
219 self.__process.write(pdata) |
220 |
220 |
221 def __sendCtrl(self, cmd): |
221 def __sendCtrl(self, cmd): |
222 """ |
222 """ |
223 Private slot to send a control command to the shell process. |
223 Private slot to send a control command to the shell process. |