diff options
-rw-r--r-- | util/ansi.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/ansi.js b/util/ansi.js index 860a4fa..e7f7642 100644 --- a/util/ansi.js +++ b/util/ansi.js @@ -48,7 +48,9 @@ const ansi = { cleanCursor() { // A combination of codes that generally cleans up the cursor. - return ansi.resetAttributes() + ansi.showCursor() + return ansi.resetAttributes() + + ansi.stopTrackingMouse() + + ansi.showCursor() }, hideCursor() { @@ -108,6 +110,10 @@ const ansi = { return `${ESC}[?1000h` }, + stopTrackingMouse() { + return `${ESC}[?1000l` + }, + requestCursorPosition() { // Requests the position of the cursor. // Expect a stdin-result '\ESC[l;cR', where l is the line number (1-based), |