From 228cd79989dc6114e3233a645cb952eac548be25 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 25 Nov 2020 13:03:16 -0700 Subject: [PATCH] Patch around NR v2.00b20 'ansi-256color' ttype --- core/client_term.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/client_term.js b/core/client_term.js index e961394e..4cbd603c 100644 --- a/core/client_term.js +++ b/core/client_term.js @@ -132,6 +132,9 @@ ClientTerminal.prototype.isANSI = function() { // // Reports from various terminals // + // NetRunner v2.00beta 20 + // * This version adds 256 colors and reports as "ansi-256color" + // // syncterm: // * SyncTERM // @@ -150,7 +153,7 @@ ClientTerminal.prototype.isANSI = function() { // linux: // * JuiceSSH (note: TERM=linux also) // - return [ 'ansi', 'pcansi', 'pc-ansi', 'ansi-bbs', 'qansi', 'scoansi', 'syncterm' ].includes(this.termType); + return [ 'ansi', 'pcansi', 'pc-ansi', 'ansi-bbs', 'qansi', 'scoansi', 'syncterm', 'ansi-256color' ].includes(this.termType); }; // :TODO: probably need to update these to convert IAC (0xff) -> IACIAC (escape it)