pinokiod 3.19.25 → 3.19.26
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 +3 -0
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -500,10 +500,13 @@ class Shell {
|
|
|
500
500
|
console.log("Vt.write", data)
|
|
501
501
|
vt.write(data, () => {
|
|
502
502
|
let buf = vts.serialize()
|
|
503
|
+
console.log({ buf })
|
|
503
504
|
let re = /(.+)echo pinokio[\r\n]+pinokio[\r\n]+(\1)/gs
|
|
504
505
|
const match = re.exec(buf)
|
|
506
|
+
console.log({ match })
|
|
505
507
|
if (match && match.length > 0) {
|
|
506
508
|
let stripped = this.stripAnsi(match[1])
|
|
509
|
+
console.log({ stripped })
|
|
507
510
|
const p = stripped
|
|
508
511
|
.replaceAll(/[\r\n]/g, "")
|
|
509
512
|
.trim()
|