« 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/util/ansi.js
diff options
context:
space:
mode:
Diffstat (limited to 'util/ansi.js')
-rw-r--r--util/ansi.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/ansi.js b/util/ansi.js
index f976c12..6d26f5d 100644
--- a/util/ansi.js
+++ b/util/ansi.js
@@ -104,6 +104,10 @@ const ansi = {
     return `${ESC}[27m`
   },
 
+  startTrackingMouse() {
+    return `${ESC}[?9h`
+  },
+
   requestCursorPosition() {
     // Requests the position of the cursor.
     // Expect a stdin-result '\ESC[l;cR', where l is the line number (1-based),