Default to CP437 unless we explicitly detect a 'nix' terminal

This commit is contained in:
Bryan Ashby 2022-07-11 23:14:48 -06:00
parent d8bbabe289
commit fc064605ab
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
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