@visulima/ansi 4.0.0-alpha.9 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +290 -0
- package/LICENSE.md +0 -20
- package/README.md +41 -10
- package/dist/alternative-screen.d.ts +71 -70
- package/dist/alternative-screen.js +1 -8
- package/dist/background.d.ts +72 -0
- package/dist/background.js +1 -0
- package/dist/charset.d.ts +52 -0
- package/dist/charset.js +1 -0
- package/dist/clear.d.ts +74 -73
- package/dist/clear.js +1 -10
- package/dist/clipboard.d.ts +76 -0
- package/dist/clipboard.js +1 -0
- package/dist/constants.d.ts +18 -10
- package/dist/constants.js +1 -0
- package/dist/cursor.d.ts +421 -406
- package/dist/cursor.js +1 -3
- package/dist/cwd.d.ts +26 -0
- package/dist/cwd.js +1 -0
- package/dist/erase.d.ts +193 -192
- package/dist/erase.js +1 -47
- package/dist/finalterm.d.ts +47 -0
- package/dist/finalterm.js +1 -0
- package/dist/focus.d.ts +20 -0
- package/dist/focus.js +1 -0
- package/dist/hyperlink.d.ts +25 -25
- package/dist/hyperlink.js +1 -5
- package/dist/image.d.ts +70 -70
- package/dist/image.js +1 -40
- package/dist/index.d.ts +38 -35
- package/dist/index.js +1 -26
- package/dist/iterm2.d.ts +285 -58
- package/dist/iterm2.js +1 -12
- package/dist/keypad.d.ts +27 -0
- package/dist/keypad.js +1 -0
- package/dist/kitty-graphics.d.ts +17 -0
- package/dist/kitty-graphics.js +1 -0
- package/dist/mode.d.ts +585 -584
- package/dist/mode.js +1 -245
- package/dist/mouse.d.ts +227 -226
- package/dist/mouse.js +1 -106
- package/dist/notification.d.ts +30 -0
- package/dist/notification.js +1 -0
- package/dist/packem_shared/IT2_AUTO-K3GubKy7.js +1 -0
- package/dist/packem_shared/ITerm2File-BkLc5ipB.js +1 -0
- package/dist/packem_shared/cursor-BXG1O_IE.js +1 -0
- package/dist/packem_shared/restoreCursor-CyaXIMQf.js +2 -0
- package/dist/passthrough.d.ts +74 -73
- package/dist/passthrough.js +1 -29
- package/dist/paste.d.ts +23 -0
- package/dist/paste.js +1 -0
- package/dist/progress.d.ts +37 -36
- package/dist/progress.js +1 -0
- package/dist/reset.d.ts +25 -24
- package/dist/reset.js +1 -4
- package/dist/screen.d.ts +226 -225
- package/dist/screen.js +1 -27
- package/dist/scroll.d.ts +64 -63
- package/dist/scroll.js +1 -18
- package/dist/sixel.d.ts +19 -0
- package/dist/sixel.js +1 -0
- package/dist/status.d.ts +521 -520
- package/dist/status.js +1 -95
- package/dist/strip.d.ts +26 -1
- package/dist/strip.js +1 -13
- package/dist/termcap.d.ts +36 -35
- package/dist/termcap.js +1 -25
- package/dist/title.d.ts +176 -175
- package/dist/title.js +1 -19
- package/dist/urxvt.d.ts +15 -0
- package/dist/urxvt.js +1 -0
- package/dist/window-ops.d.ts +399 -398
- package/dist/window-ops.js +1 -61
- package/dist/xterm.d.ts +167 -84
- package/dist/xterm.js +1 -33
- package/package.json +60 -9
- package/dist/helpers.d.ts +0 -14
- package/dist/iterm2/iterm2-properties.d.ts +0 -135
- package/dist/iterm2/iterm2-sequences.d.ts +0 -96
- package/dist/packem_shared/IT2_AUTO-DyYWsxno.js +0 -6
- package/dist/packem_shared/ITerm2File-CUZDBk99.js +0 -137
- package/dist/packem_shared/constants-CE7WkXh_.js +0 -9
- package/dist/packem_shared/cursor-ChpV7cgs.js +0 -72
- package/dist/packem_shared/resetProgressBar-D9r2s7eV.js +0 -18
- package/dist/packem_shared/restoreCursor-GfYEeJqN.js +0 -323
package/dist/sixel.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wraps a pre-encoded Sixel `payload` in the Sixel graphics device-control
|
|
3
|
+
* string (`DCS … q … ST`).
|
|
4
|
+
*
|
|
5
|
+
* This is an emit-only helper: it does **not** encode pixel data into Sixel
|
|
6
|
+
* format, it only frames already-encoded Sixel data so it can be written to a
|
|
7
|
+
* Sixel-capable terminal. Pass a negative value for `aspectRatio`/`backgroundMode`
|
|
8
|
+
* to omit that parameter and a non-positive value for `gridSize` to omit it.
|
|
9
|
+
*
|
|
10
|
+
* Sequence: `DCS aspectRatio ; backgroundMode ; gridSize q payload ST`
|
|
11
|
+
* @param aspectRatio The pixel aspect ratio macro parameter (omitted when negative).
|
|
12
|
+
* @param backgroundMode The background color / transparency mode (omitted when negative).
|
|
13
|
+
* @param gridSize The grid size (omitted when not positive).
|
|
14
|
+
* @param payload The already-encoded Sixel data.
|
|
15
|
+
* @returns The Sixel `DCS` escape sequence.
|
|
16
|
+
* @see {@link https://vt100.net/docs/vt3xx-gp/chapter14.html}
|
|
17
|
+
*/
|
|
18
|
+
declare const sixelGraphics: (aspectRatio: number, backgroundMode: number, gridSize: number, payload: string) => string;
|
|
19
|
+
export { sixelGraphics as default };
|
package/dist/sixel.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DCS as c,ST as e}from"./constants.js";const m=(t,$,r,i)=>{const n=t>=0?String(t):"",o=$>=0?String($):"",S=r>0?`;${String(r)}`:"";return`${c}${n};${o}${S}q${i}${e}`};export{m as default};
|