pinokiod 3.2.15 → 3.2.16

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.
Files changed (2) hide show
  1. package/kernel/shell.js +3 -0
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -815,6 +815,7 @@ ${cleaned}
815
815
  this.vt.write(msg, () => {
816
816
  let buf = this.vts.serialize()
817
817
  let cleaned = this.stripAnsi(buf)
818
+ console.log({ buf, cleaned })
818
819
  let response = {
819
820
  id: this.id,
820
821
  raw: msg,
@@ -824,6 +825,7 @@ ${cleaned}
824
825
  if (this.cb) this.cb(response)
825
826
 
826
827
  // Decide whether to kill or continue
828
+ console.log("this.ready", this.ready)
827
829
  if (this.ready) {
828
830
  // when ready, watch out for the prompt pattern that terminates with [\r\n ]
829
831
  let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
@@ -862,6 +864,7 @@ ${cleaned}
862
864
  // when not ready, wait for the first occurence of the prompt pattern.
863
865
  let prompt_re = new RegExp(this.prompt_pattern, "g")
864
866
  let test = cleaned.replaceAll(/[\r\n]/g, "").match(prompt_re)
867
+ console.log(">>>>>>>>", { cleaned, test, prompt_re })
865
868
  if (test) {
866
869
  if (test.length > 0) {
867
870
  this.ready = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.15",
3
+ "version": "3.2.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {