diff options
-rw-r--r-- | examples/interfacer-telnet.js | 2 | ||||
-rw-r--r-- | util/TelnetInterfacer.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/interfacer-telnet.js b/examples/interfacer-telnet.js index 8cb804b..d7aad43 100644 --- a/examples/interfacer-telnet.js +++ b/examples/interfacer-telnet.js @@ -17,7 +17,7 @@ const server = new net.Server(socket => { root.w = size.width root.h = size.height - interfacer.on('screenSizeUpdated', newSize => { + interfacer.on('resize', newSize => { root.w = newSize.width root.h = newSize.height root.fixAllLayout() diff --git a/util/TelnetInterfacer.js b/util/TelnetInterfacer.js index 410f8e9..dc71157 100644 --- a/util/TelnetInterfacer.js +++ b/util/TelnetInterfacer.js @@ -123,6 +123,7 @@ module.exports = class TelnetInterfacer extends EventEmitter { if (didSBNAWS && command[1] === 240) { // SE didSBNAWS = false this.emit('screenSizeUpdated', this.parseSBNAWS(sbNAWS)) + this.emit('resize', this.parseSBNAWS(sbNAWS)) continue } } |