More improved logging around client changes
This commit is contained in:
parent
2d8c896ad4
commit
695bb40b17
|
@ -60,6 +60,11 @@ function ClientTerminal(output) {
|
||||||
set: function (ttype) {
|
set: function (ttype) {
|
||||||
termType = ttype.toLowerCase();
|
termType = ttype.toLowerCase();
|
||||||
|
|
||||||
|
Log.debug(
|
||||||
|
{ encoding: this.outputEncoding },
|
||||||
|
`Terminal type changed to ${termType}; Adjusting output encoding`
|
||||||
|
);
|
||||||
|
|
||||||
if (this.isNixTerm()) {
|
if (this.isNixTerm()) {
|
||||||
this.outputEncoding = 'utf8';
|
this.outputEncoding = 'utf8';
|
||||||
} else {
|
} else {
|
||||||
|
@ -69,11 +74,6 @@ function ClientTerminal(output) {
|
||||||
// :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
|
||||||
// Windows telnet will send "VTNT". If so, set termClient='windows'
|
// Windows telnet will send "VTNT". If so, set termClient='windows'
|
||||||
// there are some others on the page as well
|
// there are some others on the page as well
|
||||||
|
|
||||||
Log.debug(
|
|
||||||
{ encoding: this.outputEncoding },
|
|
||||||
'Set output encoding due to terminal type change'
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ const ansiQuerySyncTermFontSupport = (client, cb) => {
|
||||||
const [_, w] = pos;
|
const [_, w] = pos;
|
||||||
if (w === 1) {
|
if (w === 1) {
|
||||||
// cursor didn't move
|
// cursor didn't move
|
||||||
client.log.info('Enabling SyncTERM font support');
|
client.log.info(`SyncTERM font support enabled on node ${client.node}`);
|
||||||
client.term.syncTermFontsEnabled = true;
|
client.term.syncTermFontsEnabled = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue