Some additional cleanup
This commit is contained in:
@@ -87,13 +87,8 @@ function Client(/*input, output*/) {
|
||||
this.lastActivityTime = Date.now();
|
||||
this.menuStack = new MenuStack(this);
|
||||
this.acs = new ACS( { client : this, user : this.user } );
|
||||
this.mciCache = {};
|
||||
this.interruptQueue = new UserInterruptQueue(this);
|
||||
|
||||
this.clearMciCache = function() {
|
||||
this.mciCache = {};
|
||||
};
|
||||
|
||||
Object.defineProperty(this, 'currentTheme', {
|
||||
get : () => {
|
||||
if (this.currentThemeConfig) {
|
||||
|
||||
@@ -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