Some additional cleanup
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user