From 9210cbf5986f4e7b796d39fe36d81aeab1992ae3 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 7 Jul 2019 16:39:59 -0300 Subject: Emit 'resize' as well in TelnetInterfacer Same as 'screenSizeUpdated'. --- examples/interfacer-telnet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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() -- cgit 1.3.0-6-gf8a5