@visulima/ansi 1.0.18 → 1.1.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 +21 -0
- package/LICENSE.md +76 -74
- package/README.md +335 -2
- package/dist/alternative-screen.cjs +11 -5
- package/dist/alternative-screen.d.cts +74 -4
- package/dist/alternative-screen.d.mts +74 -4
- package/dist/alternative-screen.d.ts +74 -4
- package/dist/alternative-screen.mjs +8 -4
- package/dist/clear.cjs +10 -18
- package/dist/clear.d.cts +77 -7
- package/dist/clear.d.mts +77 -7
- package/dist/clear.d.ts +77 -7
- package/dist/clear.mjs +8 -15
- package/dist/constants.d.cts +20 -0
- package/dist/constants.d.mts +20 -0
- package/dist/constants.d.ts +20 -0
- package/dist/cursor.cjs +19 -2
- package/dist/cursor.d.cts +436 -30
- package/dist/cursor.d.mts +436 -30
- package/dist/cursor.d.ts +436 -30
- package/dist/cursor.mjs +2 -2
- package/dist/erase.cjs +44 -13
- package/dist/erase.d.cts +206 -9
- package/dist/erase.d.mts +206 -9
- package/dist/erase.d.ts +206 -9
- package/dist/erase.mjs +40 -14
- package/dist/helpers.d.cts +14 -0
- package/dist/helpers.d.mts +14 -0
- package/dist/helpers.d.ts +14 -0
- package/dist/hyperlink.cjs +9 -0
- package/dist/hyperlink.d.cts +29 -0
- package/dist/hyperlink.d.mts +27 -0
- package/dist/hyperlink.d.ts +29 -0
- package/dist/hyperlink.mjs +7 -0
- package/dist/image.cjs +12 -5
- package/dist/image.d.cts +69 -58
- package/dist/image.d.mts +69 -58
- package/dist/image.d.ts +69 -58
- package/dist/image.mjs +10 -5
- package/dist/index.cjs +209 -11
- package/dist/index.d.cts +35 -12
- package/dist/index.d.mts +35 -12
- package/dist/index.d.ts +35 -12
- package/dist/index.mjs +20 -7
- package/dist/iterm2/iterm2-properties.d.cts +135 -0
- package/dist/iterm2/iterm2-properties.d.mts +135 -0
- package/dist/iterm2/iterm2-properties.d.ts +135 -0
- package/dist/iterm2/iterm2-sequences.d.cts +96 -0
- package/dist/iterm2/iterm2-sequences.d.mts +96 -0
- package/dist/iterm2/iterm2-sequences.d.ts +96 -0
- package/dist/iterm2.cjs +26 -0
- package/dist/iterm2.d.cts +58 -0
- package/dist/iterm2.d.mts +58 -0
- package/dist/iterm2.d.ts +58 -0
- package/dist/iterm2.mjs +14 -0
- package/dist/mode.cjs +388 -0
- package/dist/mode.d.cts +657 -0
- package/dist/mode.d.mts +657 -0
- package/dist/mode.d.ts +657 -0
- package/dist/mode.mjs +235 -0
- package/dist/mouse.cjs +127 -0
- package/dist/mouse.d.cts +230 -0
- package/dist/mouse.d.mts +230 -0
- package/dist/mouse.d.ts +230 -0
- package/dist/mouse.mjs +108 -0
- package/dist/packem_shared/IT2_AUTO-5vTJQMm6.cjs +15 -0
- package/dist/packem_shared/IT2_AUTO-DnfCUXso.mjs +8 -0
- package/dist/packem_shared/ITerm2File-BGPqNSjB.cjs +137 -0
- package/dist/packem_shared/ITerm2File-DKFkdqdA.mjs +130 -0
- package/dist/packem_shared/{constants-D8u2npjW.cjs → constants-BK26O-46.cjs} +4 -0
- package/dist/packem_shared/constants-CE7WkXh_.mjs +9 -0
- package/dist/packem_shared/cursor-CQKLCu7U.cjs +105 -0
- package/dist/packem_shared/cursor-DhFQcQ9g.mjs +73 -0
- package/dist/passthrough.cjs +38 -0
- package/dist/passthrough.d.cts +77 -0
- package/dist/passthrough.d.mts +77 -0
- package/dist/passthrough.d.ts +77 -0
- package/dist/passthrough.mjs +31 -0
- package/dist/reset.cjs +9 -0
- package/dist/reset.d.cts +26 -0
- package/dist/reset.d.mts +26 -0
- package/dist/reset.d.ts +26 -0
- package/dist/reset.mjs +4 -0
- package/dist/screen.cjs +41 -0
- package/dist/screen.d.cts +234 -0
- package/dist/screen.d.mts +234 -0
- package/dist/screen.d.ts +234 -0
- package/dist/screen.mjs +29 -0
- package/dist/scroll.cjs +17 -3
- package/dist/scroll.d.cts +67 -4
- package/dist/scroll.d.mts +67 -4
- package/dist/scroll.d.ts +67 -4
- package/dist/scroll.mjs +16 -4
- package/dist/status.cjs +147 -0
- package/dist/status.d.cts +501 -0
- package/dist/status.d.mts +501 -0
- package/dist/status.d.ts +501 -0
- package/dist/status.mjs +104 -0
- package/dist/strip.d.cts +23 -1
- package/dist/strip.d.mts +22 -2
- package/dist/strip.d.ts +23 -1
- package/dist/termcap.cjs +33 -0
- package/dist/termcap.d.cts +38 -0
- package/dist/termcap.d.mts +38 -0
- package/dist/termcap.d.ts +38 -0
- package/dist/termcap.mjs +27 -0
- package/dist/title.cjs +31 -0
- package/dist/title.d.cts +185 -0
- package/dist/title.d.mts +185 -0
- package/dist/title.d.ts +185 -0
- package/dist/title.mjs +20 -0
- package/dist/window-ops.cjs +85 -0
- package/dist/window-ops.d.cts +418 -0
- package/dist/window-ops.d.mts +418 -0
- package/dist/window-ops.d.ts +418 -0
- package/dist/window-ops.mjs +63 -0
- package/dist/xterm.cjs +48 -0
- package/dist/xterm.d.cts +94 -0
- package/dist/xterm.d.mts +94 -0
- package/dist/xterm.d.ts +94 -0
- package/dist/xterm.mjs +35 -0
- package/package.json +153 -9
- package/dist/link.cjs +0 -9
- package/dist/link.d.cts +0 -3
- package/dist/link.d.mts +0 -3
- package/dist/link.d.ts +0 -3
- package/dist/link.mjs +0 -7
- package/dist/packem_shared/constants-CqXMfQy0.mjs +0 -7
- package/dist/packem_shared/cursor-2tHgT9r6.cjs +0 -57
- package/dist/packem_shared/cursor-CDCWqbC9.mjs +0 -42
package/dist/image.mjs
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Buffer } from 'node:buffer';
|
|
2
|
+
import { O as OSC, B as BEL } from './packem_shared/constants-CE7WkXh_.mjs';
|
|
2
3
|
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
6
|
const image = /* @__PURE__ */ __name((data, options = {}) => {
|
|
7
|
+
if (!data) {
|
|
8
|
+
return "";
|
|
9
|
+
}
|
|
6
10
|
let returnValue = `${OSC}1337;File=inline=1`;
|
|
7
|
-
if (options.width) {
|
|
11
|
+
if (options.width !== void 0) {
|
|
8
12
|
returnValue += `;width=${options.width}`;
|
|
9
13
|
}
|
|
10
|
-
if (options.height) {
|
|
14
|
+
if (options.height !== void 0) {
|
|
11
15
|
returnValue += `;height=${options.height}`;
|
|
12
16
|
}
|
|
13
17
|
if (options.preserveAspectRatio === false) {
|
|
14
18
|
returnValue += ";preserveAspectRatio=0";
|
|
15
19
|
}
|
|
16
|
-
|
|
20
|
+
const base64Data = Buffer.from(data).toString("base64");
|
|
21
|
+
return `${returnValue}:${base64Data}${BEL}`;
|
|
17
22
|
}, "image");
|
|
18
23
|
|
|
19
|
-
export { image
|
|
24
|
+
export { image };
|
package/dist/index.cjs
CHANGED
|
@@ -4,45 +4,243 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
4
4
|
|
|
5
5
|
const alternativeScreen = require('./alternative-screen.cjs');
|
|
6
6
|
const clear = require('./clear.cjs');
|
|
7
|
-
const cursor = require('./packem_shared/cursor-
|
|
7
|
+
const cursor = require('./packem_shared/cursor-CQKLCu7U.cjs');
|
|
8
8
|
const erase = require('./erase.cjs');
|
|
9
|
+
const hyperlink = require('./hyperlink.cjs');
|
|
9
10
|
const image = require('./image.cjs');
|
|
10
|
-
const
|
|
11
|
+
const iterm2 = require('./iterm2.cjs');
|
|
12
|
+
const mode = require('./mode.cjs');
|
|
13
|
+
const mouse = require('./mouse.cjs');
|
|
14
|
+
const passthrough = require('./passthrough.cjs');
|
|
15
|
+
const reset = require('./reset.cjs');
|
|
16
|
+
const screen = require('./screen.cjs');
|
|
11
17
|
const scroll = require('./scroll.cjs');
|
|
18
|
+
const status = require('./status.cjs');
|
|
12
19
|
const strip = require('./strip.cjs');
|
|
20
|
+
const termcap = require('./termcap.cjs');
|
|
21
|
+
const title = require('./title.cjs');
|
|
22
|
+
const windowOps = require('./window-ops.cjs');
|
|
23
|
+
const xterm = require('./xterm.cjs');
|
|
24
|
+
const IT2_AUTO = require('./packem_shared/IT2_AUTO-5vTJQMm6.cjs');
|
|
25
|
+
const ITerm2File = require('./packem_shared/ITerm2File-BGPqNSjB.cjs');
|
|
13
26
|
|
|
14
27
|
const beep = "\x07";
|
|
15
28
|
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
29
|
+
exports.ALT_SCREEN_OFF = alternativeScreen.ALT_SCREEN_OFF;
|
|
30
|
+
exports.ALT_SCREEN_ON = alternativeScreen.ALT_SCREEN_ON;
|
|
31
|
+
exports.alternativeScreenOff = alternativeScreen.alternativeScreenOff;
|
|
32
|
+
exports.alternativeScreenOn = alternativeScreen.alternativeScreenOn;
|
|
33
|
+
exports.clearLineAndHomeCursor = clear.clearLineAndHomeCursor;
|
|
34
|
+
exports.clearScreenAndHomeCursor = clear.clearScreenAndHomeCursor;
|
|
35
|
+
exports.clearScreenFromTopLeft = clear.clearScreenFromTopLeft;
|
|
36
|
+
exports.resetTerminal = clear.resetTerminal;
|
|
37
|
+
exports.CURSOR_BACKWARD_1 = cursor.CURSOR_BACKWARD_1;
|
|
38
|
+
exports.CURSOR_DOWN_1 = cursor.CURSOR_DOWN_1;
|
|
39
|
+
exports.CURSOR_FORWARD_1 = cursor.CURSOR_FORWARD_1;
|
|
40
|
+
exports.CURSOR_UP_1 = cursor.CURSOR_UP_1;
|
|
41
|
+
exports.REQUEST_CURSOR_POSITION = cursor.REQUEST_CURSOR_POSITION;
|
|
42
|
+
exports.REQUEST_EXTENDED_CURSOR_POSITION = cursor.REQUEST_EXTENDED_CURSOR_POSITION;
|
|
43
|
+
exports.RESTORE_CURSOR_DEC = cursor.RESTORE_CURSOR_DEC;
|
|
44
|
+
exports.SAVE_CURSOR_DEC = cursor.SAVE_CURSOR_DEC;
|
|
23
45
|
exports.cursorBackward = cursor.cursorBackward;
|
|
46
|
+
exports.cursorBackwardTab = cursor.cursorBackwardTab;
|
|
24
47
|
exports.cursorDown = cursor.cursorDown;
|
|
25
48
|
exports.cursorForward = cursor.cursorForward;
|
|
26
49
|
exports.cursorHide = cursor.cursorHide;
|
|
50
|
+
exports.cursorHorizontalAbsolute = cursor.cursorHorizontalAbsolute;
|
|
51
|
+
exports.cursorHorizontalForwardTab = cursor.cursorHorizontalForwardTab;
|
|
27
52
|
exports.cursorLeft = cursor.cursorLeft;
|
|
28
53
|
exports.cursorMove = cursor.cursorMove;
|
|
29
54
|
exports.cursorNextLine = cursor.cursorNextLine;
|
|
55
|
+
exports.cursorPosition = cursor.cursorPosition;
|
|
30
56
|
exports.cursorPreviousLine = cursor.cursorPreviousLine;
|
|
31
57
|
exports.cursorRestore = cursor.cursorRestore;
|
|
32
58
|
exports.cursorSave = cursor.cursorSave;
|
|
33
59
|
exports.cursorShow = cursor.cursorShow;
|
|
34
60
|
exports.cursorTo = cursor.cursorTo;
|
|
61
|
+
exports.cursorToColumn1 = cursor.cursorToColumn1;
|
|
35
62
|
exports.cursorUp = cursor.cursorUp;
|
|
63
|
+
exports.cursorVerticalAbsolute = cursor.cursorVerticalAbsolute;
|
|
64
|
+
exports.eraseCharacter = cursor.eraseCharacter;
|
|
65
|
+
exports.setCursorStyle = cursor.setCursorStyle;
|
|
66
|
+
exports.eraseDisplay = erase.eraseDisplay;
|
|
36
67
|
exports.eraseDown = erase.eraseDown;
|
|
68
|
+
exports.eraseInLine = erase.eraseInLine;
|
|
37
69
|
exports.eraseLine = erase.eraseLine;
|
|
38
70
|
exports.eraseLineEnd = erase.eraseLineEnd;
|
|
39
71
|
exports.eraseLineStart = erase.eraseLineStart;
|
|
40
72
|
exports.eraseLines = erase.eraseLines;
|
|
41
73
|
exports.eraseScreen = erase.eraseScreen;
|
|
74
|
+
exports.eraseScreenAndScrollback = erase.eraseScreenAndScrollback;
|
|
42
75
|
exports.eraseUp = erase.eraseUp;
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
76
|
+
exports.hyperlink = hyperlink;
|
|
77
|
+
exports.image = image.image;
|
|
78
|
+
exports.iTerm2 = iterm2.iTerm2;
|
|
79
|
+
exports.BDSM = mode.BDSM;
|
|
80
|
+
exports.BiDirectionalSupportMode = mode.BiDirectionalSupportMode;
|
|
81
|
+
exports.DECRPM = mode.DECRPM;
|
|
82
|
+
exports.DECRQM = mode.DECRQM;
|
|
83
|
+
exports.IRM = mode.IRM;
|
|
84
|
+
exports.InsertReplaceMode = mode.InsertReplaceMode;
|
|
85
|
+
exports.KAM = mode.KAM;
|
|
86
|
+
exports.KeyboardActionMode = mode.KeyboardActionMode;
|
|
87
|
+
exports.LNM = mode.LNM;
|
|
88
|
+
exports.LineFeedNewLineMode = mode.LineFeedNewLineMode;
|
|
89
|
+
exports.LocalEchoMode = mode.LocalEchoMode;
|
|
90
|
+
exports.RM = mode.RM;
|
|
91
|
+
exports.RequestBiDirectionalSupportMode = mode.RequestBiDirectionalSupportMode;
|
|
92
|
+
exports.RequestInsertReplaceMode = mode.RequestInsertReplaceMode;
|
|
93
|
+
exports.RequestKeyboardActionMode = mode.RequestKeyboardActionMode;
|
|
94
|
+
exports.RequestLineFeedNewLineMode = mode.RequestLineFeedNewLineMode;
|
|
95
|
+
exports.RequestLocalEchoMode = mode.RequestLocalEchoMode;
|
|
96
|
+
exports.RequestSendReceiveMode = mode.RequestSendReceiveMode;
|
|
97
|
+
exports.ResetBiDirectionalSupportMode = mode.ResetBiDirectionalSupportMode;
|
|
98
|
+
exports.ResetInsertReplaceMode = mode.ResetInsertReplaceMode;
|
|
99
|
+
exports.ResetKeyboardActionMode = mode.ResetKeyboardActionMode;
|
|
100
|
+
exports.ResetLineFeedNewLineMode = mode.ResetLineFeedNewLineMode;
|
|
101
|
+
exports.ResetLocalEchoMode = mode.ResetLocalEchoMode;
|
|
102
|
+
exports.ResetSendReceiveMode = mode.ResetSendReceiveMode;
|
|
103
|
+
exports.SM = mode.SM;
|
|
104
|
+
exports.SRM = mode.SRM;
|
|
105
|
+
exports.SendReceiveMode = mode.SendReceiveMode;
|
|
106
|
+
exports.SetBiDirectionalSupportMode = mode.SetBiDirectionalSupportMode;
|
|
107
|
+
exports.SetInsertReplaceMode = mode.SetInsertReplaceMode;
|
|
108
|
+
exports.SetKeyboardActionMode = mode.SetKeyboardActionMode;
|
|
109
|
+
exports.SetLineFeedNewLineMode = mode.SetLineFeedNewLineMode;
|
|
110
|
+
exports.SetLocalEchoMode = mode.SetLocalEchoMode;
|
|
111
|
+
exports.SetSendReceiveMode = mode.SetSendReceiveMode;
|
|
112
|
+
exports.createAnsiMode = mode.createAnsiMode;
|
|
113
|
+
exports.createDecMode = mode.createDecMode;
|
|
114
|
+
exports.isModeNotRecognized = mode.isModeNotRecognized;
|
|
115
|
+
exports.isModePermanentlyReset = mode.isModePermanentlyReset;
|
|
116
|
+
exports.isModePermanentlySet = mode.isModePermanentlySet;
|
|
117
|
+
exports.isModeReset = mode.isModeReset;
|
|
118
|
+
exports.isModeSet = mode.isModeSet;
|
|
119
|
+
exports.reportMode = mode.reportMode;
|
|
120
|
+
exports.requestMode = mode.requestMode;
|
|
121
|
+
exports.resetMode = mode.resetMode;
|
|
122
|
+
exports.setMode = mode.setMode;
|
|
123
|
+
exports.MouseButton = mouse.MouseButton;
|
|
124
|
+
exports.disableAnyEventMouse = mouse.disableAnyEventMouse;
|
|
125
|
+
exports.disableButtonEventMouse = mouse.disableButtonEventMouse;
|
|
126
|
+
exports.disableFocusTracking = mouse.disableFocusTracking;
|
|
127
|
+
exports.disableNormalMouse = mouse.disableNormalMouse;
|
|
128
|
+
exports.disableSgrMouse = mouse.disableSgrMouse;
|
|
129
|
+
exports.disableX10Mouse = mouse.disableX10Mouse;
|
|
130
|
+
exports.enableAnyEventMouse = mouse.enableAnyEventMouse;
|
|
131
|
+
exports.enableButtonEventMouse = mouse.enableButtonEventMouse;
|
|
132
|
+
exports.enableFocusTracking = mouse.enableFocusTracking;
|
|
133
|
+
exports.enableNormalMouse = mouse.enableNormalMouse;
|
|
134
|
+
exports.enableSgrMouse = mouse.enableSgrMouse;
|
|
135
|
+
exports.enableX10Mouse = mouse.enableX10Mouse;
|
|
136
|
+
exports.encodeMouseButtonByte = mouse.encodeMouseButtonByte;
|
|
137
|
+
exports.mouseSgrSequence = mouse.mouseSgrSequence;
|
|
138
|
+
exports.mouseX10Sequence = mouse.mouseX10Sequence;
|
|
139
|
+
exports.SCREEN_MAX_LEN_DEFAULT = passthrough.SCREEN_MAX_LEN_DEFAULT;
|
|
140
|
+
exports.SCREEN_TYPICAL_LIMIT = passthrough.SCREEN_TYPICAL_LIMIT;
|
|
141
|
+
exports.screenPassthrough = passthrough.screenPassthrough;
|
|
142
|
+
exports.tmuxPassthrough = passthrough.tmuxPassthrough;
|
|
143
|
+
exports.RESET_INITIAL_STATE = reset.RESET_INITIAL_STATE;
|
|
144
|
+
exports.RIS = reset.RIS;
|
|
145
|
+
exports.clearTabStop = screen.clearTabStop;
|
|
146
|
+
exports.deleteCharacter = screen.deleteCharacter;
|
|
147
|
+
exports.deleteLine = screen.deleteLine;
|
|
148
|
+
exports.insertCharacter = screen.insertCharacter;
|
|
149
|
+
exports.insertLine = screen.insertLine;
|
|
150
|
+
exports.repeatPreviousCharacter = screen.repeatPreviousCharacter;
|
|
151
|
+
exports.requestPresentationStateReport = screen.requestPresentationStateReport;
|
|
152
|
+
exports.setLeftRightMargins = screen.setLeftRightMargins;
|
|
153
|
+
exports.setTopBottomMargins = screen.setTopBottomMargins;
|
|
154
|
+
exports.SCROLL_DOWN_1 = scroll.SCROLL_DOWN_1;
|
|
155
|
+
exports.SCROLL_UP_1 = scroll.SCROLL_UP_1;
|
|
45
156
|
exports.scrollDown = scroll.scrollDown;
|
|
46
157
|
exports.scrollUp = scroll.scrollUp;
|
|
158
|
+
exports.CPR = status.CPR;
|
|
159
|
+
exports.DA1 = status.DA1;
|
|
160
|
+
exports.DA2 = status.DA2;
|
|
161
|
+
exports.DA3 = status.DA3;
|
|
162
|
+
exports.DECXCPR = status.DECXCPR;
|
|
163
|
+
exports.DSR = status.DSR;
|
|
164
|
+
exports.DSR_KeyboardLanguageDEC = status.DSR_KeyboardLanguageDEC;
|
|
165
|
+
exports.DSR_PrinterStatusDEC = status.DSR_PrinterStatusDEC;
|
|
166
|
+
exports.DSR_TerminalStatus = status.DSR_TerminalStatus;
|
|
167
|
+
exports.DSR_UDKStatusDEC = status.DSR_UDKStatusDEC;
|
|
168
|
+
exports.RequestNameVersion = status.RequestNameVersion;
|
|
169
|
+
exports.XTVERSION = status.XTVERSION;
|
|
170
|
+
exports.createAnsiStatusReport = status.createAnsiStatusReport;
|
|
171
|
+
exports.createDecStatusReport = status.createDecStatusReport;
|
|
172
|
+
exports.cursorPositionReport = status.cursorPositionReport;
|
|
173
|
+
exports.deviceStatusReport = status.deviceStatusReport;
|
|
174
|
+
exports.extendedCursorPositionReport = status.extendedCursorPositionReport;
|
|
175
|
+
exports.reportKeyboardLanguageDEC = status.reportKeyboardLanguageDEC;
|
|
176
|
+
exports.reportPrimaryDeviceAttributes = status.reportPrimaryDeviceAttributes;
|
|
177
|
+
exports.reportPrinterNoPaperDEC = status.reportPrinterNoPaperDEC;
|
|
178
|
+
exports.reportPrinterNotReadyDEC = status.reportPrinterNotReadyDEC;
|
|
179
|
+
exports.reportPrinterReadyDEC = status.reportPrinterReadyDEC;
|
|
180
|
+
exports.reportSecondaryDeviceAttributes = status.reportSecondaryDeviceAttributes;
|
|
181
|
+
exports.reportTerminalNotOK = status.reportTerminalNotOK;
|
|
182
|
+
exports.reportTerminalOK = status.reportTerminalOK;
|
|
183
|
+
exports.reportTertiaryDeviceAttributes = status.reportTertiaryDeviceAttributes;
|
|
184
|
+
exports.reportUDKLockedDEC = status.reportUDKLockedDEC;
|
|
185
|
+
exports.reportUDKUnlockedDEC = status.reportUDKUnlockedDEC;
|
|
186
|
+
exports.requestCursorPositionReport = status.requestCursorPositionReport;
|
|
187
|
+
exports.requestExtendedCursorPositionReport = status.requestExtendedCursorPositionReport;
|
|
188
|
+
exports.requestKeyboardLanguageDEC = status.requestKeyboardLanguageDEC;
|
|
189
|
+
exports.requestPrimaryDeviceAttributes = status.requestPrimaryDeviceAttributes;
|
|
190
|
+
exports.requestPrimaryDeviceAttributesParam0 = status.requestPrimaryDeviceAttributesParam0;
|
|
191
|
+
exports.requestPrinterStatusDEC = status.requestPrinterStatusDEC;
|
|
192
|
+
exports.requestSecondaryDeviceAttributes = status.requestSecondaryDeviceAttributes;
|
|
193
|
+
exports.requestSecondaryDeviceAttributesParam0 = status.requestSecondaryDeviceAttributesParam0;
|
|
194
|
+
exports.requestTerminalStatus = status.requestTerminalStatus;
|
|
195
|
+
exports.requestTertiaryDeviceAttributes = status.requestTertiaryDeviceAttributes;
|
|
196
|
+
exports.requestTertiaryDeviceAttributesParam0 = status.requestTertiaryDeviceAttributesParam0;
|
|
197
|
+
exports.requestUDKStatusDEC = status.requestUDKStatusDEC;
|
|
47
198
|
exports.strip = strip;
|
|
199
|
+
exports.XTGETTCAP = termcap.XTGETTCAP;
|
|
200
|
+
exports.requestTermcap = termcap.requestTermcap;
|
|
201
|
+
exports.requestTerminfo = termcap.requestTerminfo;
|
|
202
|
+
exports.decsin = title.decsin;
|
|
203
|
+
exports.decswt = title.decswt;
|
|
204
|
+
exports.setIconName = title.setIconName;
|
|
205
|
+
exports.setIconNameAndWindowTitle = title.setIconNameAndWindowTitle;
|
|
206
|
+
exports.setIconNameAndWindowTitleWithST = title.setIconNameAndWindowTitleWithST;
|
|
207
|
+
exports.setIconNameWithST = title.setIconNameWithST;
|
|
208
|
+
exports.setWindowTitle = title.setWindowTitle;
|
|
209
|
+
exports.setWindowTitleWithST = title.setWindowTitleWithST;
|
|
210
|
+
exports.XTWINOPS = windowOps.XTWINOPS;
|
|
211
|
+
exports.deiconifyWindow = windowOps.deiconifyWindow;
|
|
212
|
+
exports.iconifyWindow = windowOps.iconifyWindow;
|
|
213
|
+
exports.lowerWindow = windowOps.lowerWindow;
|
|
214
|
+
exports.maximizeWindow = windowOps.maximizeWindow;
|
|
215
|
+
exports.moveWindow = windowOps.moveWindow;
|
|
216
|
+
exports.raiseWindow = windowOps.raiseWindow;
|
|
217
|
+
exports.refreshWindow = windowOps.refreshWindow;
|
|
218
|
+
exports.reportWindowPosition = windowOps.reportWindowPosition;
|
|
219
|
+
exports.reportWindowState = windowOps.reportWindowState;
|
|
220
|
+
exports.requestCellSizePixels = windowOps.requestCellSizePixels;
|
|
221
|
+
exports.requestTextAreaSizeChars = windowOps.requestTextAreaSizeChars;
|
|
222
|
+
exports.requestTextAreaSizePixels = windowOps.requestTextAreaSizePixels;
|
|
223
|
+
exports.resizeTextAreaChars = windowOps.resizeTextAreaChars;
|
|
224
|
+
exports.resizeTextAreaPixels = windowOps.resizeTextAreaPixels;
|
|
225
|
+
exports.restoreMaximizedWindow = windowOps.restoreMaximizedWindow;
|
|
226
|
+
exports.setPageSizeLines = windowOps.setPageSizeLines;
|
|
227
|
+
exports.xtermWindowOp = windowOps.xtermWindowOp;
|
|
228
|
+
exports.XTMODKEYS = xterm.XTMODKEYS;
|
|
229
|
+
exports.XTQMODKEYS = xterm.XTQMODKEYS;
|
|
230
|
+
exports.keyModifierOptions = xterm.keyModifierOptions;
|
|
231
|
+
exports.queryKeyModifierOptions = xterm.queryKeyModifierOptions;
|
|
232
|
+
exports.queryModifyOtherKeys = xterm.queryModifyOtherKeys;
|
|
233
|
+
exports.resetKeyModifierOptions = xterm.resetKeyModifierOptions;
|
|
234
|
+
exports.resetModifyOtherKeys = xterm.resetModifyOtherKeys;
|
|
235
|
+
exports.setKeyModifierOptions = xterm.setKeyModifierOptions;
|
|
236
|
+
exports.setModifyOtherKeys1 = xterm.setModifyOtherKeys1;
|
|
237
|
+
exports.setModifyOtherKeys2 = xterm.setModifyOtherKeys2;
|
|
238
|
+
exports.IT2_AUTO = IT2_AUTO.IT2_AUTO;
|
|
239
|
+
exports.it2Cells = IT2_AUTO.it2Cells;
|
|
240
|
+
exports.it2Percent = IT2_AUTO.it2Percent;
|
|
241
|
+
exports.it2Pixels = IT2_AUTO.it2Pixels;
|
|
242
|
+
exports.ITerm2File = ITerm2File.ITerm2File;
|
|
243
|
+
exports.ITerm2FileEnd = ITerm2File.ITerm2FileEnd;
|
|
244
|
+
exports.ITerm2FilePart = ITerm2File.ITerm2FilePart;
|
|
245
|
+
exports.ITerm2MultipartFileStart = ITerm2File.ITerm2MultipartFileStart;
|
|
48
246
|
exports.beep = beep;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Output a beeping sound.
|
|
3
|
+
*/
|
|
4
|
+
export declare const beep = "\u0007";
|
|
5
|
+
export { ALT_SCREEN_OFF, ALT_SCREEN_ON, alternativeScreenOff, alternativeScreenOn, } from "./alternative-screen.d.cts";
|
|
6
|
+
export { clearLineAndHomeCursor, clearScreenAndHomeCursor, clearScreenFromTopLeft, resetTerminal, } from "./clear.d.cts";
|
|
7
|
+
export type { CursorStyle } from "./cursor.d.cts";
|
|
8
|
+
export { CURSOR_BACKWARD_1, CURSOR_DOWN_1, CURSOR_FORWARD_1, CURSOR_UP_1, cursorBackward, cursorBackwardTab, cursorDown, cursorForward, cursorHide, cursorHorizontalAbsolute, cursorHorizontalForwardTab, cursorLeft, cursorMove, cursorNextLine, cursorPosition, cursorPreviousLine, cursorRestore, // Function
|
|
9
|
+
cursorSave, // Function
|
|
10
|
+
cursorShow, cursorTo, cursorToColumn1, cursorUp, cursorVerticalAbsolute, eraseCharacter, REQUEST_CURSOR_POSITION, REQUEST_EXTENDED_CURSOR_POSITION, RESTORE_CURSOR_DEC, // Constant for ESC 8
|
|
11
|
+
SAVE_CURSOR_DEC, // Constant for ESC 7
|
|
12
|
+
setCursorStyle, } from "./cursor.d.cts";
|
|
13
|
+
export type { EraseDisplayMode, EraseLineMode } from "./erase.d.cts";
|
|
14
|
+
export { eraseDisplay, eraseDown, eraseInLine, eraseLine, eraseLineEnd, eraseLines, eraseLineStart, eraseScreen, eraseScreenAndScrollback, eraseUp, } from "./erase.d.cts";
|
|
15
|
+
export { default as hyperlink } from "./hyperlink.d.cts";
|
|
16
|
+
export type { ImageOptions } from "./image.d.cts";
|
|
17
|
+
export { image } from "./image.d.cts";
|
|
18
|
+
export type { IITerm2Payload, ITerm2FileProperties } from "./iterm2.d.cts";
|
|
19
|
+
export { IT2_AUTO, it2Cells, it2Percent, it2Pixels, iTerm2, ITerm2File, ITerm2FileEnd, ITerm2FilePart, ITerm2MultipartFileStart, } from "./iterm2.d.cts";
|
|
20
|
+
export type { AnsiMode, DecMode, Mode, ModeSetting, } from "./mode.d.cts";
|
|
21
|
+
export { BDSM, BiDirectionalSupportMode, createAnsiMode, createDecMode, DECRPM, DECRQM, InsertReplaceMode, IRM, isModeNotRecognized, isModePermanentlyReset, isModePermanentlySet, isModeReset, isModeSet, KAM, KeyboardActionMode, LineFeedNewLineMode, LNM, LocalEchoMode, reportMode, RequestBiDirectionalSupportMode, RequestInsertReplaceMode, RequestKeyboardActionMode, RequestLineFeedNewLineMode, RequestLocalEchoMode, requestMode, RequestSendReceiveMode, ResetBiDirectionalSupportMode, ResetInsertReplaceMode, ResetKeyboardActionMode, ResetLineFeedNewLineMode, ResetLocalEchoMode, resetMode, ResetSendReceiveMode, RM, SendReceiveMode, SetBiDirectionalSupportMode, SetInsertReplaceMode, SetKeyboardActionMode, SetLineFeedNewLineMode, SetLocalEchoMode, setMode, SetSendReceiveMode, SM, SRM, } from "./mode.d.cts";
|
|
22
|
+
export type { MouseButtonType, MouseModifiers } from "./mouse.d.cts";
|
|
23
|
+
export { disableAnyEventMouse, disableButtonEventMouse, disableFocusTracking, disableNormalMouse, disableSgrMouse, disableX10Mouse, enableAnyEventMouse, enableButtonEventMouse, enableFocusTracking, enableNormalMouse, enableSgrMouse, enableX10Mouse, encodeMouseButtonByte, MouseButton, mouseSgrSequence, mouseX10Sequence, } from "./mouse.d.cts";
|
|
24
|
+
export { SCREEN_MAX_LEN_DEFAULT, SCREEN_TYPICAL_LIMIT, screenPassthrough, tmuxPassthrough, } from "./passthrough.d.cts";
|
|
25
|
+
export { RESET_INITIAL_STATE, RIS, } from "./reset.d.cts";
|
|
26
|
+
export { clearTabStop, deleteCharacter, deleteLine, insertCharacter, insertLine, repeatPreviousCharacter, requestPresentationStateReport, setLeftRightMargins, setTopBottomMargins, } from "./screen.d.cts";
|
|
27
|
+
export { SCROLL_DOWN_1, SCROLL_UP_1, scrollDown, scrollUp, } from "./scroll.d.cts";
|
|
28
|
+
export type { AnsiStatusReport, DecStatusReport, StatusReport } from "./status.d.cts";
|
|
29
|
+
export { CPR, createAnsiStatusReport, createDecStatusReport, cursorPositionReport, DA1, DA2, DA3, DECXCPR, deviceStatusReport, DSR, DSR_KeyboardLanguageDEC, DSR_PrinterStatusDEC, DSR_TerminalStatus, DSR_UDKStatusDEC, extendedCursorPositionReport, reportKeyboardLanguageDEC, reportPrimaryDeviceAttributes, reportPrinterNoPaperDEC, reportPrinterNotReadyDEC, reportPrinterReadyDEC, reportSecondaryDeviceAttributes, reportTerminalNotOK, reportTerminalOK, reportTertiaryDeviceAttributes, reportUDKLockedDEC, reportUDKUnlockedDEC, requestCursorPositionReport, requestExtendedCursorPositionReport, requestKeyboardLanguageDEC, RequestNameVersion, requestPrimaryDeviceAttributes, requestPrimaryDeviceAttributesParam0, requestPrinterStatusDEC, requestSecondaryDeviceAttributes, requestSecondaryDeviceAttributesParam0, requestTerminalStatus, requestTertiaryDeviceAttributes, requestTertiaryDeviceAttributesParam0, requestUDKStatusDEC, XTVERSION, } from "./status.d.cts";
|
|
30
|
+
export { default as strip } from "./strip.d.cts";
|
|
31
|
+
export { requestTermcap, requestTerminfo, XTGETTCAP, } from "./termcap.d.cts";
|
|
32
|
+
export { decsin, decswt, setIconName, setIconNameAndWindowTitle, setIconNameAndWindowTitleWithST, setIconNameWithST, setWindowTitle, setWindowTitleWithST, } from "./title.d.cts";
|
|
33
|
+
export type { XTermWindowOp } from "./window-ops.d.cts";
|
|
34
|
+
export { deiconifyWindow, iconifyWindow, lowerWindow, maximizeWindow, moveWindow, raiseWindow, refreshWindow, reportWindowPosition, reportWindowState, requestCellSizePixels, requestTextAreaSizeChars, requestTextAreaSizePixels, resizeTextAreaChars, resizeTextAreaPixels, restoreMaximizedWindow, setPageSizeLines, xtermWindowOp, XTWINOPS, } from "./window-ops.d.cts";
|
|
35
|
+
export { keyModifierOptions, queryKeyModifierOptions, queryModifyOtherKeys, resetKeyModifierOptions, resetModifyOtherKeys, setKeyModifierOptions, setModifyOtherKeys1, setModifyOtherKeys2, XTMODKEYS, XTQMODKEYS, } from "./xterm.d.cts";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Output a beeping sound.
|
|
3
|
+
*/
|
|
4
|
+
export declare const beep = "\u0007";
|
|
5
|
+
export { ALT_SCREEN_OFF, ALT_SCREEN_ON, alternativeScreenOff, alternativeScreenOn, } from "./alternative-screen.d.mts";
|
|
6
|
+
export { clearLineAndHomeCursor, clearScreenAndHomeCursor, clearScreenFromTopLeft, resetTerminal, } from "./clear.d.mts";
|
|
7
|
+
export type { CursorStyle } from "./cursor.d.mts";
|
|
8
|
+
export { CURSOR_BACKWARD_1, CURSOR_DOWN_1, CURSOR_FORWARD_1, CURSOR_UP_1, cursorBackward, cursorBackwardTab, cursorDown, cursorForward, cursorHide, cursorHorizontalAbsolute, cursorHorizontalForwardTab, cursorLeft, cursorMove, cursorNextLine, cursorPosition, cursorPreviousLine, cursorRestore, // Function
|
|
9
|
+
cursorSave, // Function
|
|
10
|
+
cursorShow, cursorTo, cursorToColumn1, cursorUp, cursorVerticalAbsolute, eraseCharacter, REQUEST_CURSOR_POSITION, REQUEST_EXTENDED_CURSOR_POSITION, RESTORE_CURSOR_DEC, // Constant for ESC 8
|
|
11
|
+
SAVE_CURSOR_DEC, // Constant for ESC 7
|
|
12
|
+
setCursorStyle, } from "./cursor.d.mts";
|
|
13
|
+
export type { EraseDisplayMode, EraseLineMode } from "./erase.d.mts";
|
|
14
|
+
export { eraseDisplay, eraseDown, eraseInLine, eraseLine, eraseLineEnd, eraseLines, eraseLineStart, eraseScreen, eraseScreenAndScrollback, eraseUp, } from "./erase.d.mts";
|
|
15
|
+
export { default as hyperlink } from "./hyperlink.d.mts";
|
|
16
|
+
export type { ImageOptions } from "./image.d.mts";
|
|
17
|
+
export { image } from "./image.d.mts";
|
|
18
|
+
export type { IITerm2Payload, ITerm2FileProperties } from "./iterm2.d.mts";
|
|
19
|
+
export { IT2_AUTO, it2Cells, it2Percent, it2Pixels, iTerm2, ITerm2File, ITerm2FileEnd, ITerm2FilePart, ITerm2MultipartFileStart, } from "./iterm2.d.mts";
|
|
20
|
+
export type { AnsiMode, DecMode, Mode, ModeSetting, } from "./mode.d.mts";
|
|
21
|
+
export { BDSM, BiDirectionalSupportMode, createAnsiMode, createDecMode, DECRPM, DECRQM, InsertReplaceMode, IRM, isModeNotRecognized, isModePermanentlyReset, isModePermanentlySet, isModeReset, isModeSet, KAM, KeyboardActionMode, LineFeedNewLineMode, LNM, LocalEchoMode, reportMode, RequestBiDirectionalSupportMode, RequestInsertReplaceMode, RequestKeyboardActionMode, RequestLineFeedNewLineMode, RequestLocalEchoMode, requestMode, RequestSendReceiveMode, ResetBiDirectionalSupportMode, ResetInsertReplaceMode, ResetKeyboardActionMode, ResetLineFeedNewLineMode, ResetLocalEchoMode, resetMode, ResetSendReceiveMode, RM, SendReceiveMode, SetBiDirectionalSupportMode, SetInsertReplaceMode, SetKeyboardActionMode, SetLineFeedNewLineMode, SetLocalEchoMode, setMode, SetSendReceiveMode, SM, SRM, } from "./mode.d.mts";
|
|
22
|
+
export type { MouseButtonType, MouseModifiers } from "./mouse.d.mts";
|
|
23
|
+
export { disableAnyEventMouse, disableButtonEventMouse, disableFocusTracking, disableNormalMouse, disableSgrMouse, disableX10Mouse, enableAnyEventMouse, enableButtonEventMouse, enableFocusTracking, enableNormalMouse, enableSgrMouse, enableX10Mouse, encodeMouseButtonByte, MouseButton, mouseSgrSequence, mouseX10Sequence, } from "./mouse.d.mts";
|
|
24
|
+
export { SCREEN_MAX_LEN_DEFAULT, SCREEN_TYPICAL_LIMIT, screenPassthrough, tmuxPassthrough, } from "./passthrough.d.mts";
|
|
25
|
+
export { RESET_INITIAL_STATE, RIS, } from "./reset.d.mts";
|
|
26
|
+
export { clearTabStop, deleteCharacter, deleteLine, insertCharacter, insertLine, repeatPreviousCharacter, requestPresentationStateReport, setLeftRightMargins, setTopBottomMargins, } from "./screen.d.mts";
|
|
27
|
+
export { SCROLL_DOWN_1, SCROLL_UP_1, scrollDown, scrollUp, } from "./scroll.d.mts";
|
|
28
|
+
export type { AnsiStatusReport, DecStatusReport, StatusReport } from "./status.d.mts";
|
|
29
|
+
export { CPR, createAnsiStatusReport, createDecStatusReport, cursorPositionReport, DA1, DA2, DA3, DECXCPR, deviceStatusReport, DSR, DSR_KeyboardLanguageDEC, DSR_PrinterStatusDEC, DSR_TerminalStatus, DSR_UDKStatusDEC, extendedCursorPositionReport, reportKeyboardLanguageDEC, reportPrimaryDeviceAttributes, reportPrinterNoPaperDEC, reportPrinterNotReadyDEC, reportPrinterReadyDEC, reportSecondaryDeviceAttributes, reportTerminalNotOK, reportTerminalOK, reportTertiaryDeviceAttributes, reportUDKLockedDEC, reportUDKUnlockedDEC, requestCursorPositionReport, requestExtendedCursorPositionReport, requestKeyboardLanguageDEC, RequestNameVersion, requestPrimaryDeviceAttributes, requestPrimaryDeviceAttributesParam0, requestPrinterStatusDEC, requestSecondaryDeviceAttributes, requestSecondaryDeviceAttributesParam0, requestTerminalStatus, requestTertiaryDeviceAttributes, requestTertiaryDeviceAttributesParam0, requestUDKStatusDEC, XTVERSION, } from "./status.d.mts";
|
|
30
|
+
export { default as strip } from "./strip.d.mts";
|
|
31
|
+
export { requestTermcap, requestTerminfo, XTGETTCAP, } from "./termcap.d.mts";
|
|
32
|
+
export { decsin, decswt, setIconName, setIconNameAndWindowTitle, setIconNameAndWindowTitleWithST, setIconNameWithST, setWindowTitle, setWindowTitleWithST, } from "./title.d.mts";
|
|
33
|
+
export type { XTermWindowOp } from "./window-ops.d.mts";
|
|
34
|
+
export { deiconifyWindow, iconifyWindow, lowerWindow, maximizeWindow, moveWindow, raiseWindow, refreshWindow, reportWindowPosition, reportWindowState, requestCellSizePixels, requestTextAreaSizeChars, requestTextAreaSizePixels, resizeTextAreaChars, resizeTextAreaPixels, restoreMaximizedWindow, setPageSizeLines, xtermWindowOp, XTWINOPS, } from "./window-ops.d.mts";
|
|
35
|
+
export { keyModifierOptions, queryKeyModifierOptions, queryModifyOtherKeys, resetKeyModifierOptions, resetModifyOtherKeys, setKeyModifierOptions, setModifyOtherKeys1, setModifyOtherKeys2, XTMODKEYS, XTQMODKEYS, } from "./xterm.d.mts";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Output a beeping sound.
|
|
3
|
+
*/
|
|
4
|
+
export declare const beep = "\u0007";
|
|
5
|
+
export { ALT_SCREEN_OFF, ALT_SCREEN_ON, alternativeScreenOff, alternativeScreenOn, } from "./alternative-screen.d.ts";
|
|
6
|
+
export { clearLineAndHomeCursor, clearScreenAndHomeCursor, clearScreenFromTopLeft, resetTerminal, } from "./clear.d.ts";
|
|
7
|
+
export type { CursorStyle } from "./cursor.d.ts";
|
|
8
|
+
export { CURSOR_BACKWARD_1, CURSOR_DOWN_1, CURSOR_FORWARD_1, CURSOR_UP_1, cursorBackward, cursorBackwardTab, cursorDown, cursorForward, cursorHide, cursorHorizontalAbsolute, cursorHorizontalForwardTab, cursorLeft, cursorMove, cursorNextLine, cursorPosition, cursorPreviousLine, cursorRestore, // Function
|
|
9
|
+
cursorSave, // Function
|
|
10
|
+
cursorShow, cursorTo, cursorToColumn1, cursorUp, cursorVerticalAbsolute, eraseCharacter, REQUEST_CURSOR_POSITION, REQUEST_EXTENDED_CURSOR_POSITION, RESTORE_CURSOR_DEC, // Constant for ESC 8
|
|
11
|
+
SAVE_CURSOR_DEC, // Constant for ESC 7
|
|
12
|
+
setCursorStyle, } from "./cursor.d.ts";
|
|
13
|
+
export type { EraseDisplayMode, EraseLineMode } from "./erase.d.ts";
|
|
14
|
+
export { eraseDisplay, eraseDown, eraseInLine, eraseLine, eraseLineEnd, eraseLines, eraseLineStart, eraseScreen, eraseScreenAndScrollback, eraseUp, } from "./erase.d.ts";
|
|
15
|
+
export { default as hyperlink } from "./hyperlink.d.ts";
|
|
16
|
+
export type { ImageOptions } from "./image.d.ts";
|
|
17
|
+
export { image } from "./image.d.ts";
|
|
18
|
+
export type { IITerm2Payload, ITerm2FileProperties } from "./iterm2.d.ts";
|
|
19
|
+
export { IT2_AUTO, it2Cells, it2Percent, it2Pixels, iTerm2, ITerm2File, ITerm2FileEnd, ITerm2FilePart, ITerm2MultipartFileStart, } from "./iterm2.d.ts";
|
|
20
|
+
export type { AnsiMode, DecMode, Mode, ModeSetting, } from "./mode.d.ts";
|
|
21
|
+
export { BDSM, BiDirectionalSupportMode, createAnsiMode, createDecMode, DECRPM, DECRQM, InsertReplaceMode, IRM, isModeNotRecognized, isModePermanentlyReset, isModePermanentlySet, isModeReset, isModeSet, KAM, KeyboardActionMode, LineFeedNewLineMode, LNM, LocalEchoMode, reportMode, RequestBiDirectionalSupportMode, RequestInsertReplaceMode, RequestKeyboardActionMode, RequestLineFeedNewLineMode, RequestLocalEchoMode, requestMode, RequestSendReceiveMode, ResetBiDirectionalSupportMode, ResetInsertReplaceMode, ResetKeyboardActionMode, ResetLineFeedNewLineMode, ResetLocalEchoMode, resetMode, ResetSendReceiveMode, RM, SendReceiveMode, SetBiDirectionalSupportMode, SetInsertReplaceMode, SetKeyboardActionMode, SetLineFeedNewLineMode, SetLocalEchoMode, setMode, SetSendReceiveMode, SM, SRM, } from "./mode.d.ts";
|
|
22
|
+
export type { MouseButtonType, MouseModifiers } from "./mouse.d.ts";
|
|
23
|
+
export { disableAnyEventMouse, disableButtonEventMouse, disableFocusTracking, disableNormalMouse, disableSgrMouse, disableX10Mouse, enableAnyEventMouse, enableButtonEventMouse, enableFocusTracking, enableNormalMouse, enableSgrMouse, enableX10Mouse, encodeMouseButtonByte, MouseButton, mouseSgrSequence, mouseX10Sequence, } from "./mouse.d.ts";
|
|
24
|
+
export { SCREEN_MAX_LEN_DEFAULT, SCREEN_TYPICAL_LIMIT, screenPassthrough, tmuxPassthrough, } from "./passthrough.d.ts";
|
|
25
|
+
export { RESET_INITIAL_STATE, RIS, } from "./reset.d.ts";
|
|
26
|
+
export { clearTabStop, deleteCharacter, deleteLine, insertCharacter, insertLine, repeatPreviousCharacter, requestPresentationStateReport, setLeftRightMargins, setTopBottomMargins, } from "./screen.d.ts";
|
|
27
|
+
export { SCROLL_DOWN_1, SCROLL_UP_1, scrollDown, scrollUp, } from "./scroll.d.ts";
|
|
28
|
+
export type { AnsiStatusReport, DecStatusReport, StatusReport } from "./status.d.ts";
|
|
29
|
+
export { CPR, createAnsiStatusReport, createDecStatusReport, cursorPositionReport, DA1, DA2, DA3, DECXCPR, deviceStatusReport, DSR, DSR_KeyboardLanguageDEC, DSR_PrinterStatusDEC, DSR_TerminalStatus, DSR_UDKStatusDEC, extendedCursorPositionReport, reportKeyboardLanguageDEC, reportPrimaryDeviceAttributes, reportPrinterNoPaperDEC, reportPrinterNotReadyDEC, reportPrinterReadyDEC, reportSecondaryDeviceAttributes, reportTerminalNotOK, reportTerminalOK, reportTertiaryDeviceAttributes, reportUDKLockedDEC, reportUDKUnlockedDEC, requestCursorPositionReport, requestExtendedCursorPositionReport, requestKeyboardLanguageDEC, RequestNameVersion, requestPrimaryDeviceAttributes, requestPrimaryDeviceAttributesParam0, requestPrinterStatusDEC, requestSecondaryDeviceAttributes, requestSecondaryDeviceAttributesParam0, requestTerminalStatus, requestTertiaryDeviceAttributes, requestTertiaryDeviceAttributesParam0, requestUDKStatusDEC, XTVERSION, } from "./status.d.ts";
|
|
30
|
+
export { default as strip } from "./strip.d.ts";
|
|
31
|
+
export { requestTermcap, requestTerminfo, XTGETTCAP, } from "./termcap.d.ts";
|
|
32
|
+
export { decsin, decswt, setIconName, setIconNameAndWindowTitle, setIconNameAndWindowTitleWithST, setIconNameWithST, setWindowTitle, setWindowTitleWithST, } from "./title.d.ts";
|
|
33
|
+
export type { XTermWindowOp } from "./window-ops.d.ts";
|
|
34
|
+
export { deiconifyWindow, iconifyWindow, lowerWindow, maximizeWindow, moveWindow, raiseWindow, refreshWindow, reportWindowPosition, reportWindowState, requestCellSizePixels, requestTextAreaSizeChars, requestTextAreaSizePixels, resizeTextAreaChars, resizeTextAreaPixels, restoreMaximizedWindow, setPageSizeLines, xtermWindowOp, XTWINOPS, } from "./window-ops.d.ts";
|
|
35
|
+
export { keyModifierOptions, queryKeyModifierOptions, queryModifyOtherKeys, resetKeyModifierOptions, resetModifyOtherKeys, setKeyModifierOptions, setModifyOtherKeys1, setModifyOtherKeys2, XTMODKEYS, XTQMODKEYS, } from "./xterm.d.ts";
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { c as cursorBackward,
|
|
4
|
-
export { eraseDown, eraseLine, eraseLineEnd, eraseLineStart, eraseLines, eraseScreen, eraseUp } from './erase.mjs';
|
|
5
|
-
export { default as
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
1
|
+
export { ALT_SCREEN_OFF, ALT_SCREEN_ON, alternativeScreenOff, alternativeScreenOn } from './alternative-screen.mjs';
|
|
2
|
+
export { clearLineAndHomeCursor, clearScreenAndHomeCursor, clearScreenFromTopLeft, resetTerminal } from './clear.mjs';
|
|
3
|
+
export { C as CURSOR_BACKWARD_1, a as CURSOR_DOWN_1, b as CURSOR_FORWARD_1, c as CURSOR_UP_1, R as REQUEST_CURSOR_POSITION, x as REQUEST_EXTENDED_CURSOR_POSITION, y as RESTORE_CURSOR_DEC, S as SAVE_CURSOR_DEC, d as cursorBackward, e as cursorBackwardTab, f as cursorDown, g as cursorForward, h as cursorHide, i as cursorHorizontalAbsolute, j as cursorHorizontalForwardTab, k as cursorLeft, l as cursorMove, m as cursorNextLine, n as cursorPosition, o as cursorPreviousLine, p as cursorRestore, q as cursorSave, r as cursorShow, s as cursorTo, t as cursorToColumn1, u as cursorUp, v as cursorVerticalAbsolute, w as eraseCharacter, z as setCursorStyle } from './packem_shared/cursor-DhFQcQ9g.mjs';
|
|
4
|
+
export { eraseDisplay, eraseDown, eraseInLine, eraseLine, eraseLineEnd, eraseLineStart, eraseLines, eraseScreen, eraseScreenAndScrollback, eraseUp } from './erase.mjs';
|
|
5
|
+
export { default as hyperlink } from './hyperlink.mjs';
|
|
6
|
+
export { image } from './image.mjs';
|
|
7
|
+
export { iTerm2 } from './iterm2.mjs';
|
|
8
|
+
export { BDSM, BiDirectionalSupportMode, DECRPM, DECRQM, IRM, InsertReplaceMode, KAM, KeyboardActionMode, LNM, LineFeedNewLineMode, LocalEchoMode, RM, RequestBiDirectionalSupportMode, RequestInsertReplaceMode, RequestKeyboardActionMode, RequestLineFeedNewLineMode, RequestLocalEchoMode, RequestSendReceiveMode, ResetBiDirectionalSupportMode, ResetInsertReplaceMode, ResetKeyboardActionMode, ResetLineFeedNewLineMode, ResetLocalEchoMode, ResetSendReceiveMode, SM, SRM, SendReceiveMode, SetBiDirectionalSupportMode, SetInsertReplaceMode, SetKeyboardActionMode, SetLineFeedNewLineMode, SetLocalEchoMode, SetSendReceiveMode, createAnsiMode, createDecMode, isModeNotRecognized, isModePermanentlyReset, isModePermanentlySet, isModeReset, isModeSet, reportMode, requestMode, resetMode, setMode } from './mode.mjs';
|
|
9
|
+
export { MouseButton, disableAnyEventMouse, disableButtonEventMouse, disableFocusTracking, disableNormalMouse, disableSgrMouse, disableX10Mouse, enableAnyEventMouse, enableButtonEventMouse, enableFocusTracking, enableNormalMouse, enableSgrMouse, enableX10Mouse, encodeMouseButtonByte, mouseSgrSequence, mouseX10Sequence } from './mouse.mjs';
|
|
10
|
+
export { SCREEN_MAX_LEN_DEFAULT, SCREEN_TYPICAL_LIMIT, screenPassthrough, tmuxPassthrough } from './passthrough.mjs';
|
|
11
|
+
export { RESET_INITIAL_STATE, RIS } from './reset.mjs';
|
|
12
|
+
export { clearTabStop, deleteCharacter, deleteLine, insertCharacter, insertLine, repeatPreviousCharacter, requestPresentationStateReport, setLeftRightMargins, setTopBottomMargins } from './screen.mjs';
|
|
13
|
+
export { SCROLL_DOWN_1, SCROLL_UP_1, scrollDown, scrollUp } from './scroll.mjs';
|
|
14
|
+
export { CPR, DA1, DA2, DA3, DECXCPR, DSR, DSR_KeyboardLanguageDEC, DSR_PrinterStatusDEC, DSR_TerminalStatus, DSR_UDKStatusDEC, RequestNameVersion, XTVERSION, createAnsiStatusReport, createDecStatusReport, cursorPositionReport, deviceStatusReport, extendedCursorPositionReport, reportKeyboardLanguageDEC, reportPrimaryDeviceAttributes, reportPrinterNoPaperDEC, reportPrinterNotReadyDEC, reportPrinterReadyDEC, reportSecondaryDeviceAttributes, reportTerminalNotOK, reportTerminalOK, reportTertiaryDeviceAttributes, reportUDKLockedDEC, reportUDKUnlockedDEC, requestCursorPositionReport, requestExtendedCursorPositionReport, requestKeyboardLanguageDEC, requestPrimaryDeviceAttributes, requestPrimaryDeviceAttributesParam0, requestPrinterStatusDEC, requestSecondaryDeviceAttributes, requestSecondaryDeviceAttributesParam0, requestTerminalStatus, requestTertiaryDeviceAttributes, requestTertiaryDeviceAttributesParam0, requestUDKStatusDEC } from './status.mjs';
|
|
8
15
|
export { default as strip } from './strip.mjs';
|
|
16
|
+
export { XTGETTCAP, requestTermcap, requestTerminfo } from './termcap.mjs';
|
|
17
|
+
export { decsin, decswt, setIconName, setIconNameAndWindowTitle, setIconNameAndWindowTitleWithST, setIconNameWithST, setWindowTitle, setWindowTitleWithST } from './title.mjs';
|
|
18
|
+
export { XTWINOPS, deiconifyWindow, iconifyWindow, lowerWindow, maximizeWindow, moveWindow, raiseWindow, refreshWindow, reportWindowPosition, reportWindowState, requestCellSizePixels, requestTextAreaSizeChars, requestTextAreaSizePixels, resizeTextAreaChars, resizeTextAreaPixels, restoreMaximizedWindow, setPageSizeLines, xtermWindowOp } from './window-ops.mjs';
|
|
19
|
+
export { XTMODKEYS, XTQMODKEYS, keyModifierOptions, queryKeyModifierOptions, queryModifyOtherKeys, resetKeyModifierOptions, resetModifyOtherKeys, setKeyModifierOptions, setModifyOtherKeys1, setModifyOtherKeys2 } from './xterm.mjs';
|
|
20
|
+
export { IT2_AUTO, it2Cells, it2Percent, it2Pixels } from './packem_shared/IT2_AUTO-DnfCUXso.mjs';
|
|
21
|
+
export { ITerm2File, ITerm2FileEnd, ITerm2FilePart, ITerm2MultipartFileStart } from './packem_shared/ITerm2File-DKFkdqdA.mjs';
|
|
9
22
|
|
|
10
23
|
const beep = "\x07";
|
|
11
24
|
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { LiteralUnion } from "type-fest";
|
|
2
|
+
/**
|
|
3
|
+
* Represents the special string value `'auto'` used for iTerm2 image or file dimensions.
|
|
4
|
+
* When `'auto'` is used for width or height, the terminal (iTerm2) determines the appropriate dimension
|
|
5
|
+
* based on the image's inherent size or other context.
|
|
6
|
+
* @example `width: IT2_AUTO`
|
|
7
|
+
*/
|
|
8
|
+
export declare const IT2_AUTO: string;
|
|
9
|
+
/**
|
|
10
|
+
* Formats a number as a string representing a dimension in character cells for iTerm2.
|
|
11
|
+
* iTerm2 interprets plain numbers for width/height as character cell counts.
|
|
12
|
+
* @param n The number of character cells.
|
|
13
|
+
* @returns A string representation of the number (e.g., `10` becomes `"10"`).
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const widthInCells = it2Cells(20); // "20"
|
|
17
|
+
* const sequence = `File=width=${widthInCells}`;
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const it2Cells: (n: number) => string;
|
|
21
|
+
/**
|
|
22
|
+
* Formats a number as a string representing a dimension in pixels for iTerm2.
|
|
23
|
+
* Appends `px` to the number.
|
|
24
|
+
* @param n The number of pixels.
|
|
25
|
+
* @returns A string representing the dimension in pixels (e.g., `100` becomes `"100px"`).
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const heightInPixels = it2Pixels(150);
|
|
29
|
+
* const sequence = `File=height=${heightInPixels}`;
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const it2Pixels: (n: number) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Formats a number as a string representing a dimension as a percentage for iTerm2.
|
|
35
|
+
* Appends `%` to the number.
|
|
36
|
+
* @param n The percentage value (e.g., `50` for 50%).
|
|
37
|
+
* @returns A string representing the dimension as a percentage (e.g., `50` becomes `"50%"`).
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const widthAsPercentage = it2Percent(75);
|
|
41
|
+
* const sequence = `File=width=${widthAsPercentage}`;
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const it2Percent: (n: number) => string;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the interface for any iTerm2 OSC 1337 payload object.
|
|
47
|
+
*
|
|
48
|
+
* An OSC 1337 sequence has the general form: `OSC 1337 ; <payload_string> BEL`.
|
|
49
|
+
* Objects implementing this interface are responsible for generating that `<payload_string>`
|
|
50
|
+
* via their `toString()` method. This allows for a structured way to build various iTerm2 commands.
|
|
51
|
+
* @see {@link iTerm2} function which consumes objects of this type.
|
|
52
|
+
*/
|
|
53
|
+
export interface IITerm2Payload {
|
|
54
|
+
/**
|
|
55
|
+
* Converts the payload object into its specific string representation required for an iTerm2 OSC 1337 command.
|
|
56
|
+
* For example, for a file transfer, this might return `"File=name=...;size=...:content..."`.
|
|
57
|
+
* @returns The string payload part of the OSC 1337 sequence.
|
|
58
|
+
*/
|
|
59
|
+
toString: () => string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Defines the properties for an iTerm2 file transfer or inline image display command (`File=...`).
|
|
63
|
+
* These correspond to the key-value pairs used within the `File=` argument of the OSC 1337 sequence.
|
|
64
|
+
* @see {@link https://iterm2.com/documentation-escape-codes.html} iTerm2 Escape Codes (search for `File=`)
|
|
65
|
+
* @see {@link https://iterm2.com/documentation-images.html} iTerm2 Inline Images Protocol
|
|
66
|
+
*/
|
|
67
|
+
export interface ITerm2FileProperties {
|
|
68
|
+
/**
|
|
69
|
+
* The Base64 encoded content of the file or image.
|
|
70
|
+
* This is typically used when `inline=1` is set for images, or for transferring small files directly
|
|
71
|
+
* within the escape sequence. For larger files, multipart transfer is recommended.
|
|
72
|
+
* @remarks The `ITerm2File` class can handle the Base64 encoding of `Uint8Array` data automatically.
|
|
73
|
+
*/
|
|
74
|
+
content?: string;
|
|
75
|
+
/**
|
|
76
|
+
* If `true`, instructs the terminal not to move the cursor after displaying an inline image.
|
|
77
|
+
* Corresponds to `doNotMoveCursor=1` in the sequence.
|
|
78
|
+
* This is a WezTerm extension, also supported by iTerm2 beta/nightly builds as of some versions.
|
|
79
|
+
* @default false (cursor behavior is default terminal behavior)
|
|
80
|
+
*/
|
|
81
|
+
doNotMoveCursor?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The display height of the image or file placeholder.
|
|
84
|
+
* Can be:
|
|
85
|
+
* - A number (interpreted as character cells, e.g., `10`).
|
|
86
|
+
* - A string with units: `"Npx"` (N pixels), `"N%"` (N percent of session height).
|
|
87
|
+
* - The string {@link IT2_AUTO} (`"auto"`) for automatic sizing.
|
|
88
|
+
* Use helper functions like {@link it2Cells}, {@link it2Pixels}, {@link it2Percent} for formatting if needed.
|
|
89
|
+
* @example `10`, `"100px"`, `"50%"`, `IT2_AUTO`
|
|
90
|
+
*/
|
|
91
|
+
height?: LiteralUnion<typeof IT2_AUTO, number | string>;
|
|
92
|
+
/**
|
|
93
|
+
* Controls aspect ratio preservation for inline images.
|
|
94
|
+
* - If `true` (or omitted), the aspect ratio *is* preserved (`preserveAspectRatio=1`, which is the default iTerm2 behavior if the param is absent).
|
|
95
|
+
* - If `false`, the aspect ratio is *not* preserved, and the image may stretch (`preserveAspectRatio=0`).
|
|
96
|
+
* @remarks Note the slight inversion: this property `ignoreAspectRatio: true` means `preserveAspectRatio=0` in the sequence.
|
|
97
|
+
* The default iTerm2 behavior *is* to preserve aspect ratio if the `preserveAspectRatio` parameter is not given.
|
|
98
|
+
* So, to *not* preserve, you set this to true to *add* `preserveAspectRatio=0`.
|
|
99
|
+
* If you want to preserve (default), you can omit this or set it to `false`.
|
|
100
|
+
* @default false (meaning aspect ratio is preserved by iTerm2 default unless overridden)
|
|
101
|
+
*/
|
|
102
|
+
ignoreAspectRatio?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* If `true`, the file (typically an image) should be displayed inline in the terminal.
|
|
105
|
+
* Corresponds to `inline=1` in the sequence.
|
|
106
|
+
* If `false` or omitted, iTerm2 might prompt for download or handle based on file type.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
inline?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The name of the file. This is displayed in UI elements (like a download prompt or image info)
|
|
112
|
+
* and used as the default filename if downloaded.
|
|
113
|
+
* The name **must be Base64 encoded** if it contains special characters (like `;`, `=`, or non-ASCII characters)
|
|
114
|
+
* to ensure correct parsing of the escape sequence by iTerm2.
|
|
115
|
+
* The `ITerm2File` and `ITerm2MultipartFileStart` classes generally expect the name to be pre-encoded if necessary.
|
|
116
|
+
* @example `"bXlmaWxlLnR4dA=="` (Base64 for "myfile.txt")
|
|
117
|
+
*/
|
|
118
|
+
name?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The size of the file in bytes. This is used by iTerm2 for progress indication during downloads
|
|
121
|
+
* or to inform inline display mechanisms.
|
|
122
|
+
* JavaScript `number` type is generally sufficient for typical file sizes (up to `Number.MAX_SAFE_INTEGER`).
|
|
123
|
+
*/
|
|
124
|
+
size?: number;
|
|
125
|
+
/**
|
|
126
|
+
* The display width of the image or file placeholder.
|
|
127
|
+
* Can be:
|
|
128
|
+
* - A number (interpreted as character cells, e.g., `20`).
|
|
129
|
+
* - A string with units: `"Npx"` (N pixels), `"N%"` (N percent of session width).
|
|
130
|
+
* - The string {@link IT2_AUTO} (`"auto"`) for automatic sizing.
|
|
131
|
+
* Use helper functions like {@link it2Cells}, {@link it2Pixels}, {@link it2Percent} for formatting if needed.
|
|
132
|
+
* @example `20`, `"200px"`, `"75%"`, `IT2_AUTO`
|
|
133
|
+
*/
|
|
134
|
+
width?: LiteralUnion<typeof IT2_AUTO, number | string>;
|
|
135
|
+
}
|