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

View File

@@ -56,11 +56,10 @@ function ClientTerminal(output) {
set: function (ttype) { set: function (ttype) {
termType = ttype.toLowerCase(); termType = ttype.toLowerCase();
if (this.isANSI()) { if (this.isNixTerm()) {
this.outputEncoding = 'cp437';
} else {
// :TODO: See how x84 does this -- only set if local/remote are binary
this.outputEncoding = 'utf8'; this.outputEncoding = 'utf8';
} else {
this.outputEncoding = 'cp437';
} }
// :TODO: according to this: http://mud-dev.wikidot.com/article:telnet-client-identification // :TODO: according to this: http://mud-dev.wikidot.com/article:telnet-client-identification