diff options
author | Florrie <towerofnix@gmail.com> | 2018-12-08 02:37:15 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-12-08 02:37:15 -0400 |
commit | 1f434c1ef11fa55bab1718ea4e3ca8d115c0dfb1 (patch) | |
tree | 341321a95d376faf720dda8d4e0ca4b69880f3e6 /util/ansi.js | |
parent | 013835d81e5e56f59faf17e215a73f9e8dc4310b (diff) |
Mouse support
Not exactly the most elegant implementation, but it definitely works and isn't really difficult to code around!
Diffstat (limited to 'util/ansi.js')
-rw-r--r-- | util/ansi.js | 4 |
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), |