UNPKG

@visulima/ansi

Version:

ANSI escape codes for some terminal swag.

15 lines (12 loc) 786 B
import { O as OSC, B as BEL } from './packem_shared/constants-CE7WkXh_.mjs'; export { IT2_AUTO, it2Cells, it2Percent, it2Pixels } from './packem_shared/IT2_AUTO-DnfCUXso.mjs'; export { ITerm2File, ITerm2FileEnd, ITerm2FilePart, ITerm2MultipartFileStart } from './packem_shared/ITerm2File-DKFkdqdA.mjs'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); const iTerm2 = /* @__PURE__ */ __name((payload) => { if (!payload || typeof payload.toString !== "function" || payload.toString === Object.prototype.toString) { throw new Error("Invalid payload: must implement IITerm2Payload with a custom toString method"); } return `${OSC}1337;${payload.toString()}${BEL}`; }, "iTerm2"); export { iTerm2 };