From fc064605ab135ac400d1e86c37763f034bba4158 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 11 Jul 2022 23:14:48 -0600 Subject: [PATCH] Default to CP437 unless we explicitly detect a 'nix' terminal --- core/client_term.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/client_term.js b/core/client_term.js index fa7f8ba2..b65690e0 100644 --- a/core/client_term.js +++ b/core/client_term.js @@ -56,11 +56,10 @@ function ClientTerminal(output) { set: function (ttype) { termType = ttype.toLowerCase(); - if (this.isANSI()) { - this.outputEncoding = 'cp437'; - } else { - // :TODO: See how x84 does this -- only set if local/remote are binary + if (this.isNixTerm()) { this.outputEncoding = 'utf8'; + } else { + this.outputEncoding = 'cp437'; } // :TODO: according to this: http://mud-dev.wikidot.com/article:telnet-client-identification