修复 使用终端输入编码向终端发送命令

This commit is contained in:
Dark Litss 2022-07-08 22:24:13 +08:00 committed by GitHub
parent aadfee16ed
commit a325f74adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ export default class GeneralSendCommand extends InstanceCommand {
if (!instance.process) {
instance.failure(new Error("命令执行失败,因为实例实际进程不存在."));
}
instance.process.write(encode(text, instance.config.oe));
instance.process.write(encode(text, instance.config.ie));
instance.process.write("\n");
}
}

View File

@ -32,6 +32,6 @@ export default class GeneralInputCommand extends InstanceCommand {
if (!instance.process) {
instance.failure(new Error("命令执行失败,因为实例实际进程不存在."));
}
instance.process.write(encode(text, instance.config.oe));
instance.process.write(encode(text, instance.config.ie));
}
}