« get me outta code hell

Set VT200 mouse instead of X10 mouse - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-12-08 03:01:02 -0400
committerFlorrie <towerofnix@gmail.com>2018-12-08 03:01:02 -0400
commit9ab92766dd225cdf6db0e465057f8f7fddddac28 (patch)
treeb9f747dafb369a1e1196685a3dd08320622bd4d3
parent1f434c1ef11fa55bab1718ea4e3ca8d115c0dfb1 (diff)
Set VT200 mouse instead of X10 mouse
Reference:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking

For some reason this works better with tmux than X10 mouse (and it still
works in ordinary, non-tmux windows).
-rw-r--r--util/ansi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ansi.js b/util/ansi.js
index 6d26f5d..860a4fa 100644
--- a/util/ansi.js
+++ b/util/ansi.js
@@ -105,7 +105,7 @@ const ansi = {
   },
 
   startTrackingMouse() {
-    return `${ESC}[?9h`
+    return `${ESC}[?1000h`
   },
 
   requestCursorPosition() {