From 2b27f369bd7e94e2a73562bbbe96e34830205ab1 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 21 Sep 2023 15:08:52 +0900 Subject: [PATCH] Update shell.js --- lib/shell.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/shell.js b/lib/shell.js index f8d7149..3f39d23 100644 --- a/lib/shell.js +++ b/lib/shell.js @@ -96,16 +96,18 @@ var ShellObject = function() { console.log("ShellObject.exec() ->", c); sleep(1); - this.stdout.loadFromFile(this.stdout.path, this.charset); - this.stderr.loadFromFile(this.stderr.path, this.charset); + this.stdout.reload(this.charset); + this.stderr.reload(this.charset); stdout = (function(s) { - return s.length > 3 ? s.substring(3) : ''; + return s.length > 1 ? s.substring(1) : ''; })(this.stdout.read()); stderr = (function(s) { - return s.length > 3 ? s.substring(3) : ''; + return s.length > 1 ? s.substring(1) : ''; })(this.stderr.read()); + //stdout = this.stdout.read(); + //stderr = this.stderr.read(); //console.log("[stdout] " + stdout); //console.log("[stderr] " + stderr);