« get me outta code hell

Mouse support - 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:
authorFlorrie <towerofnix@gmail.com>2018-12-08 02:38:04 -0400
committerFlorrie <towerofnix@gmail.com>2018-12-08 02:38:04 -0400
commit7a4e4aa8afb341ba3e2b949f71b6c2a05f743831 (patch)
tree181a002ea35d9f2c4630fff5081ca4a066ece23b /index.js
parentc85e1da7a905d76ab1c59f42c810c12cf0322fb3 (diff)
Mouse support
'Cuz hey, why not?
Diffstat (limited to 'index.js')
-rwxr-xr-xindex.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index d6dbcee..15392bd 100755
--- a/index.js
+++ b/index.js
@@ -67,6 +67,8 @@ async function main() {
   root.h = size.height
   root.fixAllLayout()
 
+  process.stdout.write(ansi.startTrackingMouse())
+
   const flushable = new Flushable(process.stdout, true)
   flushable.resizeScreen(size)
   flushable.shouldShowCompressionStatistics = process.argv.includes('--show-ansi-stats')