Some additional cleanup

This commit is contained in:
Bryan Ashby
2022-04-26 12:36:31 -06:00
parent b5f05b69e3
commit dd6a0553d8
4 changed files with 2 additions and 18 deletions

View File

@@ -231,8 +231,6 @@ function SSHClient(clientConn) {
if(termHeight > 0 && termWidth > 0) {
self.term.termHeight = termHeight;
self.term.termWidth = termWidth;
self.clearMciCache(); // term size changes = invalidate cache
}
if(_.isString(info.term) && info.term.length > 0 && 'unknown' === self.term.termType) {

View File

@@ -128,7 +128,7 @@ class TelnetClient {
const value = parseInt(getValue(what));
if (value) {
this.term[what === 'ROWS' ? 'termHeight' : 'termWidth'] = value;
this.clearMciCache();
this._logDebug(
{ [ what ] : value, source : 'NEW-ENVIRON' },
'Window size updated'
@@ -157,8 +157,6 @@ class TelnetClient {
this.term.env.ROWS = height;
}
this.clearMciCache();
this._logDebug(
{ width, height, source : 'NAWS' },
'Windows size updated'