Patch around NR v2.00b20 'ansi-256color' ttype

This commit is contained in:
Bryan Ashby 2020-11-25 13:03:16 -07:00
parent a7e4f5baef
commit 228cd79989
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 4 additions and 1 deletions

View File

@ -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)