mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-13 04:48:09 -07:00
19 lines
420 B
TypeScript
19 lines
420 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { writeToStdout } from '@google/gemini-cli-core';
|
|
|
|
const ENABLE_BRACKETED_PASTE = '\x1b[?2004h';
|
|
const DISABLE_BRACKETED_PASTE = '\x1b[?2004l';
|
|
|
|
export const enableBracketedPaste = () => {
|
|
writeToStdout(ENABLE_BRACKETED_PASTE);
|
|
};
|
|
|
|
export const disableBracketedPaste = () => {
|
|
writeToStdout(DISABLE_BRACKETED_PASTE);
|
|
};
|