Merge pull request #436 from NuSkooler/cp437-unless-nix-explicit

Default to CP437 unless we explicitly detect a 'nix' terminal
This commit is contained in:
Bryan Ashby 2022-07-11 23:16:15 -06:00 committed by GitHub
commit 0b9b08eded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

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