@visulima/ansi
Version:
ANSI escape codes for some terminal swag.
24 lines (23 loc) • 842 B
TypeScript
/**
* Marker a terminal emits immediately before pasted text when bracketed paste
* mode is enabled.
*
* Sequence: `CSI 200 ~`
* @see {@link https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Bracketed-Paste-Mode}
*/
declare const bracketedPasteStart: string;
/**
* Marker a terminal emits immediately after pasted text when bracketed paste
* mode is enabled.
*
* Sequence: `CSI 201 ~`
*/
declare const bracketedPasteEnd: string;
/**
* Wraps `text` in the bracketed-paste start/end markers, mirroring how a
* terminal delivers pasted content to an application.
* @param text The text to wrap.
* @returns `text` surrounded by {@link bracketedPasteStart} and {@link bracketedPasteEnd}.
*/
declare const wrapBracketedPaste: (text: string) => string;
export { bracketedPasteEnd, bracketedPasteStart, wrapBracketedPaste };