mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-18 18:11:02 -07:00
Merge remote-tracking branch 'origin/main' into pr-16177
This commit is contained in:
@@ -6,6 +6,21 @@
|
||||
|
||||
import { writeToStdout } from './stdio.js';
|
||||
|
||||
/**
|
||||
* ANSI escape codes for disabling mouse tracking.
|
||||
*/
|
||||
export function disableMouseTracking() {
|
||||
writeToStdout(
|
||||
[
|
||||
'\x1b[?1000l', // Normal tracking
|
||||
'\x1b[?1003l', // Any-event tracking
|
||||
'\x1b[?1015l', // urxvt extended mouse mode
|
||||
'\x1b[?1006l', // SGR-style mouse tracking
|
||||
'\x1b[?1002l', // Button-event tracking
|
||||
].join(''),
|
||||
);
|
||||
}
|
||||
|
||||
export function enableMouseEvents() {
|
||||
// Enable mouse tracking with SGR format
|
||||
// ?1002h = button event tracking (clicks + drags + scroll wheel)
|
||||
|
||||
Reference in New Issue
Block a user