« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rwxr-xr-xindex.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/index.js b/index.js
index 2b6978b..26f0fbb 100755
--- a/index.js
+++ b/index.js
@@ -67,9 +67,8 @@ async function main() {
     }
   })
 
-  const { appElement, renderInterval } = await setupClient({
+  const { appElement, dirtyTerminal, flushable, root } = await setupClient({
     backend,
-    frameRate: 50,
     interfacer: new CommandLineInterfacer(),
     writable: process.stdout
   })
@@ -78,7 +77,6 @@ async function main() {
     if (telnetServer) {
       telnetServer.disconnectAllSockets('User closed mtui - see you!')
     }
-    clearInterval(renderInterval)
     process.exit(0)
   })
 
@@ -91,6 +89,7 @@ async function main() {
     process.stdin.setRawMode(false)
     process.stdin.setRawMode(true)
     dirtyTerminal()
+    root.renderNow()
   })
 
   const loadPlaylists = async () => {