pinokiod 3.19.30 → 3.19.32
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 +4 -1
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -492,6 +492,7 @@ class Shell {
|
|
|
492
492
|
//let re = /([\r\n]+[^\r\n]+)(\1)/gs
|
|
493
493
|
let re = /(.+)(\1)/gs
|
|
494
494
|
console.log("Prompt spawn", this.shell)
|
|
495
|
+
console.log("Prompt config", config)
|
|
495
496
|
let term = pty.spawn(this.shell, this.args, config)
|
|
496
497
|
let ready
|
|
497
498
|
let vt = new Terminal({
|
|
@@ -524,13 +525,14 @@ class Shell {
|
|
|
524
525
|
cb()
|
|
525
526
|
}, 1)
|
|
526
527
|
term.onData((data) => {
|
|
527
|
-
console.log({ data })
|
|
528
|
+
console.log("Prompt onData", { data, ready })
|
|
528
529
|
if (ready) {
|
|
529
530
|
queue.push(data)
|
|
530
531
|
} else {
|
|
531
532
|
setTimeout(() => {
|
|
532
533
|
if (!ready) {
|
|
533
534
|
ready = true
|
|
535
|
+
console.log("P", { eol: this.EOL, shell: this.shell, args: this.args, ready })
|
|
534
536
|
term.write(`echo pinokio${this.EOL}echo pinokio${this.EOL}`)
|
|
535
537
|
}
|
|
536
538
|
}, 500)
|
|
@@ -989,6 +991,7 @@ class Shell {
|
|
|
989
991
|
// ptyProcess doesn't exist => create
|
|
990
992
|
this.done = false
|
|
991
993
|
console.log("EXEC SPAWN")
|
|
994
|
+
console.log("EXEC config", config)
|
|
992
995
|
this.ptyProcess = pty.spawn(this.shell, this.args, config)
|
|
993
996
|
this.ptyProcess.onData((data) => {
|
|
994
997
|
console.log("EXEC ONDATA", data)
|