UNPKG

@visulima/ansi

Version:

ANSI escape codes for some terminal swag.

21 lines (18 loc) 649 B
import { C as CSI } from './packem_shared/constants-CE7WkXh_.mjs'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); const scrollUp = /* @__PURE__ */ __name((count = 1) => { if (count === 0) { return ""; } return `${CSI + (count <= 1 ? "" : count)}S`; }, "scrollUp"); const scrollDown = /* @__PURE__ */ __name((count = 1) => { if (count === 0) { return ""; } return `${CSI + (count <= 1 ? "" : count)}T`; }, "scrollDown"); const SCROLL_UP_1 = `${CSI}S`; const SCROLL_DOWN_1 = `${CSI}T`; export { SCROLL_DOWN_1, SCROLL_UP_1, scrollDown, scrollUp };