« get me outta code hell

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/interfacer-telnet.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/interfacer-telnet.js')
-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()