|
|
@ -103,10 +103,12 @@ module.exports = class TermScreen extends EventEmitter { |
|
|
|
const self = this |
|
|
|
const self = this |
|
|
|
this.window = new Proxy(this._window, { |
|
|
|
this.window = new Proxy(this._window, { |
|
|
|
set (target, key, value, receiver) { |
|
|
|
set (target, key, value, receiver) { |
|
|
|
target[key] = value |
|
|
|
if (target[key] !== value) { |
|
|
|
self.scheduleSizeUpdate() |
|
|
|
target[key] = value |
|
|
|
self.renderer.scheduleDraw(`window:${key}=${value}`) |
|
|
|
self.scheduleSizeUpdate() |
|
|
|
self.emit(`update-window:${key}`, value) |
|
|
|
self.renderer.scheduleDraw(`window:${key}=${value}`) |
|
|
|
|
|
|
|
self.emit(`update-window:${key}`, value) |
|
|
|
|
|
|
|
} |
|
|
|
return true |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|