ssh2shell 2.0.13 → 2.0.14
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/lib/ssh2shell.js +1 -1
- package/package.json +1 -1
- package/src/ssh2shell.coffee +1 -1
package/lib/ssh2shell.js
CHANGED
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
}
|
|
813
813
|
this.sshObj.enter = /^[\r\n]+$/.test(this.sshObj.enter || "") ? this.sshObj.enter : "\n";
|
|
814
814
|
if (!this.sshObj.textColorFilter) {
|
|
815
|
-
this.sshObj.textColorFilter = "
|
|
815
|
+
this.sshObj.textColorFilter = "\\x1b\\[[0-9;]*m";
|
|
816
816
|
}
|
|
817
817
|
if (this.sshObj.disableColorFilter !== true) {
|
|
818
818
|
this.sshObj.disableColorFilter = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ssh2shell",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"author": "cmp-202",
|
|
5
5
|
"description": "A wrapper class for ssh2 to run multiple sequential commands in an SSH shell session, handle command responses, and tunnel through to other hosts using nested host objects",
|
|
6
6
|
"main": "./lib/ssh2shell.js",
|
package/src/ssh2shell.coffee
CHANGED
|
@@ -548,7 +548,7 @@ class SSH2Shell extends Stream
|
|
|
548
548
|
@sshObj.passphrasePrompt = ":" unless @sshObj.passphrasePrompt
|
|
549
549
|
@sshObj.passPromptText = "Password" unless @sshObj.passPromptText
|
|
550
550
|
@sshObj.enter = if /^[\r\n]+$/.test(@sshObj.enter or "") then @sshObj.enter else "\n"
|
|
551
|
-
@sshObj.textColorFilter = "
|
|
551
|
+
@sshObj.textColorFilter = "\\x1b\\[[0-9;]*m" unless @sshObj.textColorFilter
|
|
552
552
|
@sshObj.disableColorFilter = false unless @sshObj.disableColorFilter is true
|
|
553
553
|
@sshObj.asciiFilter = "[^\r\n\x20-\x7e]" unless @sshObj.asciiFilter
|
|
554
554
|
@sshObj.disableASCIIFilter = false unless @sshObj.disableASCIIFilter is true
|