pinokiod 3.19.41 → 3.19.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/shell.js +11 -3
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -576,7 +576,7 @@ class Shell {
|
|
|
576
576
|
}
|
|
577
577
|
for(let i=0; i<params.message.length; i++) {
|
|
578
578
|
message.push(params.message[i])
|
|
579
|
-
message.push(`echo
|
|
579
|
+
message.push(`echo ${i}`)
|
|
580
580
|
}
|
|
581
581
|
params.message = message
|
|
582
582
|
|
|
@@ -1279,8 +1279,16 @@ ${cleaned}
|
|
|
1279
1279
|
this.params.onready()
|
|
1280
1280
|
}
|
|
1281
1281
|
if (this.ptyProcess) {
|
|
1282
|
-
|
|
1283
|
-
|
|
1282
|
+
if (this.platform === "win32" && this.shell !== "cmd.exe") {
|
|
1283
|
+
console.log("Write after 500ms")
|
|
1284
|
+
setTimeout(() => {
|
|
1285
|
+
console.log("ptyProcess.write", { cmd: this.cmd, eol: this.EOL })
|
|
1286
|
+
this.ptyProcess.write(`${this.cmd}${this.EOL}`)
|
|
1287
|
+
}, 500)
|
|
1288
|
+
} else {
|
|
1289
|
+
console.log("ptyProcess.write", { cmd: this.cmd, eol: this.EOL })
|
|
1290
|
+
this.ptyProcess.write(`${this.cmd}${this.EOL}`)
|
|
1291
|
+
}
|
|
1284
1292
|
// setTimeout(() => {
|
|
1285
1293
|
// this.ptyProcess.write('\x1B[?2004h');
|
|
1286
1294
|
// }, 500)
|