« get me outta code hell

Emit 'resize' as well in TelnetInterfacer - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-07-07 16:39:59 -0300
committerFlorrie <towerofnix@gmail.com>2019-07-07 16:39:59 -0300
commit9210cbf5986f4e7b796d39fe36d81aeab1992ae3 (patch)
tree9a63ae09059a719ddc23e974b8a38a810a22c3de /examples
parentd569cc0db9994295860f48d254f630211c1806ad (diff)
Emit 'resize' as well in TelnetInterfacer
Same as 'screenSizeUpdated'.
Diffstat (limited to 'examples')
-rw-r--r--examples/interfacer-telnet.js2
1 files changed, 1 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()