@visulima/ansi 2.0.1 → 3.0.1

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.
Files changed (152) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/LICENSE.md +2 -133
  3. package/README.md +226 -226
  4. package/dist/alternative-screen.d.ts +6 -74
  5. package/dist/alternative-screen.js +1 -0
  6. package/dist/clear.d.ts +6 -77
  7. package/dist/clear.js +1 -0
  8. package/dist/cursor.d.ts +48 -429
  9. package/dist/cursor.js +1 -0
  10. package/dist/erase.d.ts +14 -197
  11. package/dist/erase.js +1 -0
  12. package/dist/hyperlink.d.ts +2 -26
  13. package/dist/hyperlink.js +1 -0
  14. package/dist/image.d.ts +7 -69
  15. package/dist/image.js +1 -0
  16. package/dist/index.d.ts +30 -35
  17. package/dist/index.js +1 -0
  18. package/dist/iterm2.d.ts +43 -58
  19. package/dist/iterm2.js +1 -0
  20. package/dist/mode.d.ts +174 -648
  21. package/dist/mode.js +1 -0
  22. package/dist/mouse.d.ts +21 -203
  23. package/dist/mouse.js +1 -0
  24. package/dist/packem_shared/IT2_AUTO-BYrffRAq.js +1 -0
  25. package/dist/packem_shared/ITerm2File-C88DBJC-.js +1 -0
  26. package/dist/packem_shared/constants-D12jy2Zh.js +1 -0
  27. package/dist/packem_shared/cursor-D2UOfUc_.js +1 -0
  28. package/dist/packem_shared/resetProgressBar-BtBbpWCM.js +1 -0
  29. package/dist/packem_shared/restoreCursor-D3XBmqcY.js +2 -0
  30. package/dist/passthrough.d.ts +6 -77
  31. package/dist/passthrough.js +1 -0
  32. package/dist/reset.d.ts +4 -26
  33. package/dist/reset.js +1 -0
  34. package/dist/screen.d.ts +11 -234
  35. package/dist/screen.js +1 -0
  36. package/dist/scroll.d.ts +6 -67
  37. package/dist/scroll.js +1 -0
  38. package/dist/status.d.ts +48 -498
  39. package/dist/status.js +1 -0
  40. package/dist/strip.d.ts +2 -22
  41. package/dist/strip.js +1 -0
  42. package/dist/termcap.d.ts +5 -38
  43. package/dist/termcap.js +1 -0
  44. package/dist/title.d.ts +10 -185
  45. package/dist/title.js +1 -0
  46. package/dist/window-ops.d.ts +24 -396
  47. package/dist/window-ops.js +1 -0
  48. package/dist/xterm.d.ts +12 -94
  49. package/dist/xterm.js +1 -0
  50. package/package.json +45 -230
  51. package/dist/alternative-screen.cjs +0 -17
  52. package/dist/alternative-screen.d.cts +0 -74
  53. package/dist/alternative-screen.d.mts +0 -74
  54. package/dist/alternative-screen.mjs +0 -10
  55. package/dist/clear.cjs +0 -17
  56. package/dist/clear.d.cts +0 -77
  57. package/dist/clear.d.mts +0 -77
  58. package/dist/clear.mjs +0 -10
  59. package/dist/constants.d.cts +0 -20
  60. package/dist/constants.d.mts +0 -20
  61. package/dist/constants.d.ts +0 -20
  62. package/dist/cursor.cjs +0 -41
  63. package/dist/cursor.d.cts +0 -437
  64. package/dist/cursor.d.mts +0 -437
  65. package/dist/cursor.mjs +0 -3
  66. package/dist/erase.cjs +0 -64
  67. package/dist/erase.d.cts +0 -206
  68. package/dist/erase.d.mts +0 -206
  69. package/dist/erase.mjs +0 -49
  70. package/dist/helpers.d.cts +0 -14
  71. package/dist/helpers.d.mts +0 -14
  72. package/dist/helpers.d.ts +0 -14
  73. package/dist/hyperlink.cjs +0 -9
  74. package/dist/hyperlink.d.cts +0 -27
  75. package/dist/hyperlink.d.mts +0 -27
  76. package/dist/hyperlink.mjs +0 -7
  77. package/dist/image.cjs +0 -28
  78. package/dist/image.d.cts +0 -73
  79. package/dist/image.d.mts +0 -73
  80. package/dist/image.mjs +0 -24
  81. package/dist/index.cjs +0 -246
  82. package/dist/index.d.cts +0 -35
  83. package/dist/index.d.mts +0 -35
  84. package/dist/index.mjs +0 -25
  85. package/dist/iterm2/iterm2-properties.d.cts +0 -135
  86. package/dist/iterm2/iterm2-properties.d.mts +0 -135
  87. package/dist/iterm2/iterm2-properties.d.ts +0 -135
  88. package/dist/iterm2/iterm2-sequences.d.cts +0 -96
  89. package/dist/iterm2/iterm2-sequences.d.mts +0 -96
  90. package/dist/iterm2/iterm2-sequences.d.ts +0 -96
  91. package/dist/iterm2.cjs +0 -26
  92. package/dist/iterm2.d.cts +0 -58
  93. package/dist/iterm2.d.mts +0 -58
  94. package/dist/iterm2.mjs +0 -14
  95. package/dist/mode.cjs +0 -388
  96. package/dist/mode.d.cts +0 -657
  97. package/dist/mode.d.mts +0 -657
  98. package/dist/mode.mjs +0 -235
  99. package/dist/mouse.cjs +0 -127
  100. package/dist/mouse.d.cts +0 -230
  101. package/dist/mouse.d.mts +0 -230
  102. package/dist/mouse.mjs +0 -108
  103. package/dist/packem_shared/IT2_AUTO-5vTJQMm6.cjs +0 -15
  104. package/dist/packem_shared/IT2_AUTO-DnfCUXso.mjs +0 -8
  105. package/dist/packem_shared/ITerm2File-BGPqNSjB.cjs +0 -137
  106. package/dist/packem_shared/ITerm2File-DKFkdqdA.mjs +0 -130
  107. package/dist/packem_shared/constants-BK26O-46.cjs +0 -17
  108. package/dist/packem_shared/constants-CE7WkXh_.mjs +0 -9
  109. package/dist/packem_shared/cursor-CQKLCu7U.cjs +0 -105
  110. package/dist/packem_shared/cursor-DhFQcQ9g.mjs +0 -73
  111. package/dist/packem_shared/restoreCursor-C6pNB8UY.mjs +0 -336
  112. package/dist/packem_shared/restoreCursor-DC_ZKZwT.cjs +0 -342
  113. package/dist/passthrough.cjs +0 -38
  114. package/dist/passthrough.d.cts +0 -77
  115. package/dist/passthrough.d.mts +0 -77
  116. package/dist/passthrough.mjs +0 -31
  117. package/dist/reset.cjs +0 -9
  118. package/dist/reset.d.cts +0 -26
  119. package/dist/reset.d.mts +0 -26
  120. package/dist/reset.mjs +0 -4
  121. package/dist/screen.cjs +0 -41
  122. package/dist/screen.d.cts +0 -234
  123. package/dist/screen.d.mts +0 -234
  124. package/dist/screen.mjs +0 -29
  125. package/dist/scroll.cjs +0 -27
  126. package/dist/scroll.d.cts +0 -67
  127. package/dist/scroll.d.mts +0 -67
  128. package/dist/scroll.mjs +0 -20
  129. package/dist/status.cjs +0 -147
  130. package/dist/status.d.cts +0 -501
  131. package/dist/status.d.mts +0 -501
  132. package/dist/status.mjs +0 -104
  133. package/dist/strip.cjs +0 -20
  134. package/dist/strip.d.cts +0 -23
  135. package/dist/strip.d.mts +0 -23
  136. package/dist/strip.mjs +0 -18
  137. package/dist/termcap.cjs +0 -33
  138. package/dist/termcap.d.cts +0 -38
  139. package/dist/termcap.d.mts +0 -38
  140. package/dist/termcap.mjs +0 -27
  141. package/dist/title.cjs +0 -31
  142. package/dist/title.d.cts +0 -185
  143. package/dist/title.d.mts +0 -185
  144. package/dist/title.mjs +0 -20
  145. package/dist/window-ops.cjs +0 -85
  146. package/dist/window-ops.d.cts +0 -418
  147. package/dist/window-ops.d.mts +0 -418
  148. package/dist/window-ops.mjs +0 -63
  149. package/dist/xterm.cjs +0 -48
  150. package/dist/xterm.d.cts +0 -94
  151. package/dist/xterm.d.mts +0 -94
  152. package/dist/xterm.mjs +0 -35
@@ -1,96 +0,0 @@
1
- import type { IITerm2Payload, ITerm2FileProperties } from "./iterm2-properties.d.ts";
2
- /**
3
- * Represents the payload for a complete iTerm2 file transfer or an inline image display command.
4
- * This class is used to construct the part of the OSC 1337 sequence that follows `File=`.
5
- * The generated payload can be either:
6
- * - `File=[PROPERTIES]:[BASE64_CONTENT]` (for inline content)
7
- * - `File=[PROPERTIES]` (if content is not provided directly, e.g., for a download announcement)
8
- *
9
- * Implements {@link IITerm2Payload} for use with the generic `iTerm2` function.
10
- * @see {@link ITerm2FileProps} for property details.
11
- * @see {@link iTerm2} for the function that wraps this payload into a full escape sequence.
12
- */
13
- export declare class ITerm2File implements IITerm2Payload {
14
- private readonly fileProps;
15
- /**
16
- * Constructs an `ITerm2File` payload object.
17
- * @param properties An object containing properties for the file/image, as defined by {@link ITerm2FileProps}.
18
- * The `name` property within `props` should be pre-Base64 encoded by the caller if it might
19
- * contain special characters (like `;`, `=`, or non-ASCII characters).
20
- * If `fileData` is provided, `props.content` will be overridden, and `props.size` will be
21
- * set from `fileData.byteLength` if not already present in `props`.
22
- * @param fileData (Optional) A `Uint8Array` containing the raw file data. If provided, this data will be
23
- * Base64 encoded and used as the `content` of the file transfer. The `size` property
24
- * will also be automatically set from `fileData.byteLength` if not specified in `props`.
25
- */
26
- constructor(properties: ITerm2FileProperties, fileData?: Uint8Array);
27
- /**
28
- * Converts the file properties and its content (if any) into the string payload
29
- * suitable for the iTerm2 `File=` command.
30
- * @returns The string payload (e.g., `"File=name=...;size=...:BASE64_CONTENT"` or `"File=name=...;size=..."`).
31
- */
32
- toString(): string;
33
- }
34
- /**
35
- * Represents the payload for ending an iTerm2 multipart file transfer.
36
- * This class is used to construct the part of the OSC 1337 sequence that is simply `FileEnd`.
37
- *
38
- * Implements {@link IITerm2Payload} for use with the generic `iTerm2` function.
39
- * @see {@link ITerm2MultipartFileStart} to initiate the transfer.
40
- * @see {@link ITerm2FilePart} for sending file chunks.
41
- */
42
- export declare class ITerm2FileEnd implements IITerm2Payload {
43
- /**
44
- * Generates the string payload for the iTerm2 `FileEnd` command.
45
- * @returns The string `"FileEnd"`.
46
- */
47
- toString(): string;
48
- }
49
- /**
50
- * Represents the payload for a part (chunk) of an iTerm2 multipart file transfer.
51
- * This class is used to construct the part of the OSC 1337 sequence that follows `FilePart=`.
52
- * The provided chunk must already be Base64 encoded.
53
- *
54
- * Implements {@link IITerm2Payload} for use with the generic `iTerm2` function.
55
- * @see {@link ITerm2MultipartFileStart} to initiate the transfer.
56
- * @see {@link ITerm2FileEnd} to finalize the transfer.
57
- */
58
- export declare class ITerm2FilePart implements IITerm2Payload {
59
- private readonly base64Chunk;
60
- /**
61
- * Constructs an `ITerm2FilePart` payload object.
62
- * @param base64Chunk A string containing a Base64 encoded chunk of the file data.
63
- * The caller is responsible for chunking the file and Base64 encoding each chunk.
64
- */
65
- constructor(base64Chunk: string);
66
- /**
67
- * Converts the Base64 encoded chunk into the string payload suitable for the iTerm2 `FilePart=` command.
68
- * @returns The string payload (e.g., `"FilePart=U09NRURBVEE="`).
69
- */
70
- toString(): string;
71
- }
72
- /**
73
- * Represents the payload for starting an iTerm2 multipart file transfer.
74
- * This class is used to construct the part of the OSC 1337 sequence that follows `MultipartFile=`.
75
- * This command initiates a transfer; the actual file data is sent in subsequent `FilePart` commands.
76
- *
77
- * Implements {@link IITerm2Payload} for use with the generic `iTerm2` function.
78
- * @see {@link ITerm2FileProps} for property details (omitting `content`).
79
- * @see {@link ITerm2FilePart} for sending file chunks.
80
- * @see {@link ITerm2FileEnd} for finalizing the transfer.
81
- */
82
- export declare class ITerm2MultipartFileStart implements IITerm2Payload {
83
- private readonly properties;
84
- /**
85
- * Constructs an `ITerm2MultipartFileStart` payload object.
86
- * @param properties Properties for the multipart file (e.g., `name`, `size`). Content is not part of this command.
87
- * The `name` property within `props` should be pre-Base64 encoded by the caller if it might
88
- * contain special characters.
89
- */
90
- constructor(properties: Omit<ITerm2FileProperties, "content">);
91
- /**
92
- * Converts the file properties into the string payload suitable for the iTerm2 `MultipartFile=` command.
93
- * @returns The string payload (e.g., `"MultipartFile=name=...;size=..."`).
94
- */
95
- toString(): string;
96
- }
package/dist/iterm2.cjs DELETED
@@ -1,26 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
-
5
- const constants = require('./packem_shared/constants-BK26O-46.cjs');
6
- const IT2_AUTO = require('./packem_shared/IT2_AUTO-5vTJQMm6.cjs');
7
- const ITerm2File = require('./packem_shared/ITerm2File-BGPqNSjB.cjs');
8
-
9
- var __defProp = Object.defineProperty;
10
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
- const iTerm2 = /* @__PURE__ */ __name((payload) => {
12
- if (!payload || typeof payload.toString !== "function" || payload.toString === Object.prototype.toString) {
13
- throw new Error("Invalid payload: must implement IITerm2Payload with a custom toString method");
14
- }
15
- return `${constants.OSC}1337;${payload.toString()}${constants.BEL}`;
16
- }, "iTerm2");
17
-
18
- exports.IT2_AUTO = IT2_AUTO.IT2_AUTO;
19
- exports.it2Cells = IT2_AUTO.it2Cells;
20
- exports.it2Percent = IT2_AUTO.it2Percent;
21
- exports.it2Pixels = IT2_AUTO.it2Pixels;
22
- exports.ITerm2File = ITerm2File.ITerm2File;
23
- exports.ITerm2FileEnd = ITerm2File.ITerm2FileEnd;
24
- exports.ITerm2FilePart = ITerm2File.ITerm2FilePart;
25
- exports.ITerm2MultipartFileStart = ITerm2File.ITerm2MultipartFileStart;
26
- exports.iTerm2 = iTerm2;
package/dist/iterm2.d.cts DELETED
@@ -1,58 +0,0 @@
1
- import type { IITerm2Payload } from './iterm2/iterm2-properties.d.cts';
2
- export type { IITerm2Payload, ITerm2FileProperties } from './iterm2/iterm2-properties.d.cts';
3
- export { IT2_AUTO, it2Cells, it2Percent, it2Pixels, } from './iterm2/iterm2-properties.d.cts';
4
- export { ITerm2File, ITerm2FileEnd, ITerm2FilePart, ITerm2MultipartFileStart, } from './iterm2/iterm2-sequences.d.cts';
5
- /**
6
- * Generates a complete iTerm2 proprietary escape sequence (OSC 1337).
7
- *
8
- * This function serves as a general-purpose constructor for iTerm2 escape codes.
9
- * It takes a payload object that conforms to the {@link IITerm2Payload} interface.
10
- * The `toString()` method of this payload object is responsible for generating the
11
- * specific command and arguments part of the sequence (e.g., `File=...`, `ShellIntegrationVersion=...`).
12
- *
13
- * The overall structure of the generated sequence is: `OSC 1337 ; &lt;PAYLOAD_STRING> BEL`
14
- * (`OSC` is `\x1b]`, `BEL` is `\x07`).
15
- * @param payload An object that implements the {@link IITerm2Payload} interface.
16
- * This object must have a `toString()` method that returns the string representation
17
- * of the iTerm2 command-specific payload.
18
- * Examples include instances of `ITerm2File`, `ITerm2MultipartFileStart`, etc.
19
- * @returns The fully formed ANSI escape sequence for the iTerm2 command.
20
- * Returns an empty string if the provided `payload` is invalid (e.g., null, undefined,
21
- * lacks a proper `toString` method, or its `toString` method is the generic `Object.prototype.toString`).
22
- * @see {@link https://iterm2.com/documentation-escape-codes.html iTerm2 Escape Codes Documentation}
23
- * for a comprehensive list of supported commands and their payloads.
24
- * @see {@link IITerm2Payload} for the interface requirement.
25
- * @see Classes like {@link ITerm2File}, {@link ITerm2MultipartFileStart}, {@link ITerm2FilePart}, {@link ITerm2FileEnd}
26
- * for concrete examples of payload objects.
27
- * @example
28
- * ```typescript
29
- * import { iTerm2, ITerm2File, ITerm2FileProps } from '@visulima/ansi/iterm2'; // ITerm2FileProps can be used for options
30
- * import { Buffer } from 'node:buffer';
31
- *
32
- * // Example 1: Sending a file inline (like an image)
33
- * const imageName = "my_image.png";
34
- * const imageData = Buffer.from("dummyimagecontent"); // Replace with actual Uint8Array image data
35
- * const imageFileProps: ITerm2FileProps = { // Use ITerm2FileProps for broader options
36
- * name: Buffer.from(imageName).toString("base64"), // Name should be base64 encoded
37
- * inline: true,
38
- * width: "50%",
39
- * height: "auto",
40
- * ignoreAspectRatio: false, // Equivalent to preserveAspectRatio: true
41
- * };
42
- * const filePayload = new ITerm2File(imageFileProps, imageData);
43
- * const imageSequence = iTerm2(filePayload);
44
- * console.log(imageSequence);
45
- * // Expected output (simplified, actual base64 will be longer):
46
- * // OSC1337;File=name=bXlfaW1hZ2UucG5n;inline=1;width=50%;height=auto:ZHVtbXlpbWFnZWNvbnRlbnQ=BEL
47
- * // Note: if ignoreAspectRatio was true, preserveAspectRatio=0 would be in the sequence.
48
- *
49
- * // Example 2: A hypothetical simple command (e.g., shell integration handshake)
50
- * const shellIntegrationPayload: IITerm2Payload = {
51
- * toString: () => "ShellIntegrationVersion=15;Shell=zsh"
52
- * };
53
- * const shellSequence = iTerm2(shellIntegrationPayload);
54
- * console.log(shellSequence);
55
- * // Output: OSC1337;ShellIntegrationVersion=15;Shell=zshBEL
56
- * ```
57
- */
58
- export declare const iTerm2: (payload: IITerm2Payload) => string;
package/dist/iterm2.d.mts DELETED
@@ -1,58 +0,0 @@
1
- import type { IITerm2Payload } from './iterm2/iterm2-properties.d.mts';
2
- export type { IITerm2Payload, ITerm2FileProperties } from './iterm2/iterm2-properties.d.mts';
3
- export { IT2_AUTO, it2Cells, it2Percent, it2Pixels, } from './iterm2/iterm2-properties.d.mts';
4
- export { ITerm2File, ITerm2FileEnd, ITerm2FilePart, ITerm2MultipartFileStart, } from './iterm2/iterm2-sequences.d.mts';
5
- /**
6
- * Generates a complete iTerm2 proprietary escape sequence (OSC 1337).
7
- *
8
- * This function serves as a general-purpose constructor for iTerm2 escape codes.
9
- * It takes a payload object that conforms to the {@link IITerm2Payload} interface.
10
- * The `toString()` method of this payload object is responsible for generating the
11
- * specific command and arguments part of the sequence (e.g., `File=...`, `ShellIntegrationVersion=...`).
12
- *
13
- * The overall structure of the generated sequence is: `OSC 1337 ; &lt;PAYLOAD_STRING> BEL`
14
- * (`OSC` is `\x1b]`, `BEL` is `\x07`).
15
- * @param payload An object that implements the {@link IITerm2Payload} interface.
16
- * This object must have a `toString()` method that returns the string representation
17
- * of the iTerm2 command-specific payload.
18
- * Examples include instances of `ITerm2File`, `ITerm2MultipartFileStart`, etc.
19
- * @returns The fully formed ANSI escape sequence for the iTerm2 command.
20
- * Returns an empty string if the provided `payload` is invalid (e.g., null, undefined,
21
- * lacks a proper `toString` method, or its `toString` method is the generic `Object.prototype.toString`).
22
- * @see {@link https://iterm2.com/documentation-escape-codes.html iTerm2 Escape Codes Documentation}
23
- * for a comprehensive list of supported commands and their payloads.
24
- * @see {@link IITerm2Payload} for the interface requirement.
25
- * @see Classes like {@link ITerm2File}, {@link ITerm2MultipartFileStart}, {@link ITerm2FilePart}, {@link ITerm2FileEnd}
26
- * for concrete examples of payload objects.
27
- * @example
28
- * ```typescript
29
- * import { iTerm2, ITerm2File, ITerm2FileProps } from '@visulima/ansi/iterm2'; // ITerm2FileProps can be used for options
30
- * import { Buffer } from 'node:buffer';
31
- *
32
- * // Example 1: Sending a file inline (like an image)
33
- * const imageName = "my_image.png";
34
- * const imageData = Buffer.from("dummyimagecontent"); // Replace with actual Uint8Array image data
35
- * const imageFileProps: ITerm2FileProps = { // Use ITerm2FileProps for broader options
36
- * name: Buffer.from(imageName).toString("base64"), // Name should be base64 encoded
37
- * inline: true,
38
- * width: "50%",
39
- * height: "auto",
40
- * ignoreAspectRatio: false, // Equivalent to preserveAspectRatio: true
41
- * };
42
- * const filePayload = new ITerm2File(imageFileProps, imageData);
43
- * const imageSequence = iTerm2(filePayload);
44
- * console.log(imageSequence);
45
- * // Expected output (simplified, actual base64 will be longer):
46
- * // OSC1337;File=name=bXlfaW1hZ2UucG5n;inline=1;width=50%;height=auto:ZHVtbXlpbWFnZWNvbnRlbnQ=BEL
47
- * // Note: if ignoreAspectRatio was true, preserveAspectRatio=0 would be in the sequence.
48
- *
49
- * // Example 2: A hypothetical simple command (e.g., shell integration handshake)
50
- * const shellIntegrationPayload: IITerm2Payload = {
51
- * toString: () => "ShellIntegrationVersion=15;Shell=zsh"
52
- * };
53
- * const shellSequence = iTerm2(shellIntegrationPayload);
54
- * console.log(shellSequence);
55
- * // Output: OSC1337;ShellIntegrationVersion=15;Shell=zshBEL
56
- * ```
57
- */
58
- export declare const iTerm2: (payload: IITerm2Payload) => string;
package/dist/iterm2.mjs DELETED
@@ -1,14 +0,0 @@
1
- import { O as OSC, B as BEL } from './packem_shared/constants-CE7WkXh_.mjs';
2
- export { IT2_AUTO, it2Cells, it2Percent, it2Pixels } from './packem_shared/IT2_AUTO-DnfCUXso.mjs';
3
- export { ITerm2File, ITerm2FileEnd, ITerm2FilePart, ITerm2MultipartFileStart } from './packem_shared/ITerm2File-DKFkdqdA.mjs';
4
-
5
- var __defProp = Object.defineProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- const iTerm2 = /* @__PURE__ */ __name((payload) => {
8
- if (!payload || typeof payload.toString !== "function" || payload.toString === Object.prototype.toString) {
9
- throw new Error("Invalid payload: must implement IITerm2Payload with a custom toString method");
10
- }
11
- return `${OSC}1337;${payload.toString()}${BEL}`;
12
- }, "iTerm2");
13
-
14
- export { iTerm2 };
package/dist/mode.cjs DELETED
@@ -1,388 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
-
5
- const constants = require('./packem_shared/constants-BK26O-46.cjs');
6
-
7
- var __defProp = Object.defineProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- class AnsiModeImpl {
10
- static {
11
- __name(this, "AnsiModeImpl");
12
- }
13
- /** The numeric code of the ANSI mode. */
14
- code;
15
- /** For ANSI modes, this is always `false`. */
16
- isDecMode = false;
17
- /**
18
- * Creates an instance of an ANSI mode.
19
- * @param code The numeric code for the ANSI mode.
20
- */
21
- constructor(code) {
22
- this.code = code;
23
- }
24
- }
25
- class DecModeImpl {
26
- static {
27
- __name(this, "DecModeImpl");
28
- }
29
- /** The numeric code of the DEC private mode. */
30
- code;
31
- /** For DEC private modes, this is always `true`. */
32
- isDecMode = true;
33
- /**
34
- * Creates an instance of a DEC private mode.
35
- * @param code The numeric code for the DEC mode.
36
- */
37
- constructor(code) {
38
- this.code = code;
39
- }
40
- }
41
- const generateModeSequence = /* @__PURE__ */ __name((reset, ...modes) => {
42
- if (modes.length === 0) {
43
- return "";
44
- }
45
- const command = reset ? "l" : "h";
46
- if (modes.length === 1) {
47
- const mode = modes[0];
48
- let seq = constants.CSI;
49
- if (mode.isDecMode) {
50
- seq += "?";
51
- }
52
- return seq + mode.code + command;
53
- }
54
- const ansiModes = modes.filter((m) => !m.isDecMode).map((m) => m.code);
55
- const decModes = modes.filter((m) => m.isDecMode).map((m) => m.code);
56
- let s = "";
57
- if (ansiModes.length > 0) {
58
- s += `${constants.CSI}${ansiModes.join(";")}${command}`;
59
- }
60
- if (decModes.length > 0) {
61
- s += `${constants.CSI}?${decModes.join(";")}${command}`;
62
- }
63
- return s;
64
- }, "generateModeSequence");
65
- var ModeSetting = /* @__PURE__ */ ((ModeSetting2) => {
66
- ModeSetting2[ModeSetting2["NotRecognized"] = 0] = "NotRecognized";
67
- ModeSetting2[ModeSetting2["PermanentlyReset"] = 4] = "PermanentlyReset";
68
- ModeSetting2[ModeSetting2["PermanentlySet"] = 3] = "PermanentlySet";
69
- ModeSetting2[ModeSetting2["Reset"] = 2] = "Reset";
70
- ModeSetting2[ModeSetting2["Set"] = 1] = "Set";
71
- return ModeSetting2;
72
- })(ModeSetting || {});
73
- const isModeNotRecognized = /* @__PURE__ */ __name((m) => m === 0 /* NotRecognized */, "isModeNotRecognized");
74
- const isModeSet = /* @__PURE__ */ __name((m) => m === 1 /* Set */ || m === 3 /* PermanentlySet */, "isModeSet");
75
- const isModeReset = /* @__PURE__ */ __name((m) => m === 2 /* Reset */ || m === 4 /* PermanentlyReset */, "isModeReset");
76
- const isModePermanentlySet = /* @__PURE__ */ __name((m) => m === 3 /* PermanentlySet */, "isModePermanentlySet");
77
- const isModePermanentlyReset = /* @__PURE__ */ __name((m) => m === 4 /* PermanentlyReset */, "isModePermanentlyReset");
78
- const createAnsiMode = /* @__PURE__ */ __name((code) => new AnsiModeImpl(code), "createAnsiMode");
79
- const createDecMode = /* @__PURE__ */ __name((code) => new DecModeImpl(code), "createDecMode");
80
- const setMode = /* @__PURE__ */ __name((...modes) => generateModeSequence(false, ...modes), "setMode");
81
- const SM = setMode;
82
- const resetMode = /* @__PURE__ */ __name((...modes) => generateModeSequence(true, ...modes), "resetMode");
83
- const RM = resetMode;
84
- const requestMode = /* @__PURE__ */ __name((mode) => {
85
- let seq = constants.CSI;
86
- if (mode.isDecMode) {
87
- seq += "?";
88
- }
89
- return `${seq + mode.code}$p`;
90
- }, "requestMode");
91
- const DECRQM = requestMode;
92
- const reportMode = /* @__PURE__ */ __name((mode, value) => {
93
- let effectiveValue = value;
94
- if (value < 0 /* NotRecognized */ || value > 4 /* PermanentlyReset */) {
95
- effectiveValue = 0 /* NotRecognized */;
96
- }
97
- let seq = constants.CSI;
98
- if (mode.isDecMode) {
99
- seq += "?";
100
- }
101
- return `${seq}${mode.code};${effectiveValue}$y`;
102
- }, "reportMode");
103
- const DECRPM = reportMode;
104
- const KeyboardActionMode = createAnsiMode(2);
105
- const KAM = KeyboardActionMode;
106
- const SetKeyboardActionMode = `${constants.CSI}2h`;
107
- const ResetKeyboardActionMode = `${constants.CSI}2l`;
108
- const RequestKeyboardActionMode = `${constants.CSI}2$p`;
109
- const InsertReplaceMode = createAnsiMode(4);
110
- const IRM = InsertReplaceMode;
111
- const SetInsertReplaceMode = `${constants.CSI}4h`;
112
- const ResetInsertReplaceMode = `${constants.CSI}4l`;
113
- const RequestInsertReplaceMode = `${constants.CSI}4$p`;
114
- const BiDirectionalSupportMode = createAnsiMode(8);
115
- const BDSM = BiDirectionalSupportMode;
116
- const SetBiDirectionalSupportMode = `${constants.CSI}8h`;
117
- const ResetBiDirectionalSupportMode = `${constants.CSI}8l`;
118
- const RequestBiDirectionalSupportMode = `${constants.CSI}8$p`;
119
- const SendReceiveMode = createAnsiMode(12);
120
- const LocalEchoMode = SendReceiveMode;
121
- const SRM = SendReceiveMode;
122
- const SetSendReceiveMode = `${constants.CSI}12h`;
123
- const ResetSendReceiveMode = `${constants.CSI}12l`;
124
- const RequestSendReceiveMode = `${constants.CSI}12$p`;
125
- const SetLocalEchoMode = SetSendReceiveMode;
126
- const ResetLocalEchoMode = ResetSendReceiveMode;
127
- const RequestLocalEchoMode = RequestSendReceiveMode;
128
- const LineFeedNewLineMode = createAnsiMode(20);
129
- const LNM = LineFeedNewLineMode;
130
- const SetLineFeedNewLineMode = `${constants.CSI}20h`;
131
- const ResetLineFeedNewLineMode = `${constants.CSI}20l`;
132
- const RequestLineFeedNewLineMode = `${constants.CSI}20$p`;
133
- const CursorKeysMode = createDecMode(1);
134
- const DECCKM = CursorKeysMode;
135
- const SetCursorKeysMode = `${constants.CSI}?1h`;
136
- const ResetCursorKeysMode = `${constants.CSI}?1l`;
137
- const RequestCursorKeysMode = `${constants.CSI}?1$p`;
138
- const OriginMode = createDecMode(6);
139
- const DECOM = OriginMode;
140
- const SetOriginMode = `${constants.CSI}?6h`;
141
- const ResetOriginMode = `${constants.CSI}?6l`;
142
- const RequestOriginMode = `${constants.CSI}?6$p`;
143
- const AutoWrapMode = createDecMode(7);
144
- const DECAWM = AutoWrapMode;
145
- const SetAutoWrapMode = `${constants.CSI}?7h`;
146
- const ResetAutoWrapMode = `${constants.CSI}?7l`;
147
- const RequestAutoWrapMode = `${constants.CSI}?7$p`;
148
- const X10MouseMode = createDecMode(9);
149
- const SetX10MouseMode = `${constants.CSI}?9h`;
150
- const ResetX10MouseMode = `${constants.CSI}?9l`;
151
- const RequestX10MouseMode = `${constants.CSI}?9$p`;
152
- const TextCursorEnableMode = createDecMode(25);
153
- const DECTCEM = TextCursorEnableMode;
154
- const SetTextCursorEnableMode = `${constants.CSI}?25h`;
155
- const ResetTextCursorEnableMode = `${constants.CSI}?25l`;
156
- const RequestTextCursorEnableMode = `${constants.CSI}?25$p`;
157
- const ShowCursor = SetTextCursorEnableMode;
158
- const HideCursor = ResetTextCursorEnableMode;
159
- const NumericKeypadMode = createDecMode(66);
160
- const DECNKM = NumericKeypadMode;
161
- const SetNumericKeypadMode = `${constants.CSI}?66h`;
162
- const ResetNumericKeypadMode = `${constants.CSI}?66l`;
163
- const RequestNumericKeypadMode = `${constants.CSI}?66$p`;
164
- const BackarrowKeyMode = createDecMode(67);
165
- const DECBKM = BackarrowKeyMode;
166
- const SetBackarrowKeyMode = `${constants.CSI}?67h`;
167
- const ResetBackarrowKeyMode = `${constants.CSI}?67l`;
168
- const RequestBackarrowKeyMode = `${constants.CSI}?67$p`;
169
- const LeftRightMarginMode = createDecMode(69);
170
- const DECLRMM = LeftRightMarginMode;
171
- const SetLeftRightMarginMode = `${constants.CSI}?69h`;
172
- const ResetLeftRightMarginMode = `${constants.CSI}?69l`;
173
- const RequestLeftRightMarginMode = `${constants.CSI}?69$p`;
174
- const NormalMouseMode = createDecMode(1e3);
175
- const SetNormalMouseMode = `${constants.CSI}?1000h`;
176
- const ResetNormalMouseMode = `${constants.CSI}?1000l`;
177
- const RequestNormalMouseMode = `${constants.CSI}?1000$p`;
178
- const HighlightMouseMode = createDecMode(1001);
179
- const SetHighlightMouseMode = `${constants.CSI}?1001h`;
180
- const ResetHighlightMouseMode = `${constants.CSI}?1001l`;
181
- const RequestHighlightMouseMode = `${constants.CSI}?1001$p`;
182
- const ButtonEventMouseMode = createDecMode(1002);
183
- const SetButtonEventMouseMode = `${constants.CSI}?1002h`;
184
- const ResetButtonEventMouseMode = `${constants.CSI}?1002l`;
185
- const RequestButtonEventMouseMode = `${constants.CSI}?1002$p`;
186
- const AnyEventMouseMode = createDecMode(1003);
187
- const SetAnyEventMouseMode = `${constants.CSI}?1003h`;
188
- const ResetAnyEventMouseMode = `${constants.CSI}?1003l`;
189
- const RequestAnyEventMouseMode = `${constants.CSI}?1003$p`;
190
- const FocusEventMode = createDecMode(1004);
191
- const SetFocusEventMode = `${constants.CSI}?1004h`;
192
- const ResetFocusEventMode = `${constants.CSI}?1004l`;
193
- const RequestFocusEventMode = `${constants.CSI}?1004$p`;
194
- const Utf8ExtMouseMode = createDecMode(1005);
195
- const SetUtf8ExtMouseMode = `${constants.CSI}?1005h`;
196
- const ResetUtf8ExtMouseMode = `${constants.CSI}?1005l`;
197
- const RequestUtf8ExtMouseMode = `${constants.CSI}?1005$p`;
198
- const SgrExtMouseMode = createDecMode(1006);
199
- const SetSgrExtMouseMode = `${constants.CSI}?1006h`;
200
- const ResetSgrExtMouseMode = `${constants.CSI}?1006l`;
201
- const RequestSgrExtMouseMode = `${constants.CSI}?1006$p`;
202
- const UrxvtExtMouseMode = createDecMode(1015);
203
- const SetUrxvtExtMouseMode = `${constants.CSI}?1015h`;
204
- const ResetUrxvtExtMouseMode = `${constants.CSI}?1015l`;
205
- const RequestUrxvtExtMouseMode = `${constants.CSI}?1015$p`;
206
- const SgrPixelExtMouseMode = createDecMode(1016);
207
- const SetSgrPixelExtMouseMode = `${constants.CSI}?1016h`;
208
- const ResetSgrPixelExtMouseMode = `${constants.CSI}?1016l`;
209
- const RequestSgrPixelExtMouseMode = `${constants.CSI}?1016$p`;
210
- const AltScreenMode = createDecMode(1047);
211
- const SetAltScreenMode = `${constants.CSI}?1047h`;
212
- const ResetAltScreenMode = `${constants.CSI}?1047l`;
213
- const RequestAltScreenMode = `${constants.CSI}?1047$p`;
214
- const SaveCursorMode = createDecMode(1048);
215
- const SetSaveCursorMode = `${constants.CSI}?1048h`;
216
- const ResetSaveCursorMode = `${constants.CSI}?1048l`;
217
- const RequestSaveCursorMode = `${constants.CSI}?1048$p`;
218
- const AltScreenSaveCursorMode = createDecMode(1049);
219
- const SetAltScreenSaveCursorMode = `${constants.CSI}?1049h`;
220
- const ResetAltScreenSaveCursorMode = `${constants.CSI}?1049l`;
221
- const RequestAltScreenSaveCursorMode = `${constants.CSI}?1049$p`;
222
- const BracketedPasteMode = createDecMode(2004);
223
- const SetBracketedPasteMode = `${constants.CSI}?2004h`;
224
- const ResetBracketedPasteMode = `${constants.CSI}?2004l`;
225
- const RequestBracketedPasteMode = `${constants.CSI}?2004$p`;
226
- const SynchronizedOutputMode = createDecMode(2026);
227
- const SetSynchronizedOutputMode = `${constants.CSI}?2026h`;
228
- const ResetSynchronizedOutputMode = `${constants.CSI}?2026l`;
229
- const RequestSynchronizedOutputMode = `${constants.CSI}?2026$p`;
230
- const GraphemeClusteringMode = createDecMode(2027);
231
- const SetGraphemeClusteringMode = `${constants.CSI}?2027h`;
232
- const ResetGraphemeClusteringMode = `${constants.CSI}?2027l`;
233
- const RequestGraphemeClusteringMode = `${constants.CSI}?2027$p`;
234
- const Win32InputMode = createDecMode(9001);
235
- const SetWin32InputMode = `${constants.CSI}?9001h`;
236
- const ResetWin32InputMode = `${constants.CSI}?9001l`;
237
- const RequestWin32InputMode = `${constants.CSI}?9001$p`;
238
-
239
- exports.AltScreenMode = AltScreenMode;
240
- exports.AltScreenSaveCursorMode = AltScreenSaveCursorMode;
241
- exports.AnyEventMouseMode = AnyEventMouseMode;
242
- exports.AutoWrapMode = AutoWrapMode;
243
- exports.BDSM = BDSM;
244
- exports.BackarrowKeyMode = BackarrowKeyMode;
245
- exports.BiDirectionalSupportMode = BiDirectionalSupportMode;
246
- exports.BracketedPasteMode = BracketedPasteMode;
247
- exports.ButtonEventMouseMode = ButtonEventMouseMode;
248
- exports.CursorKeysMode = CursorKeysMode;
249
- exports.DECAWM = DECAWM;
250
- exports.DECBKM = DECBKM;
251
- exports.DECCKM = DECCKM;
252
- exports.DECLRMM = DECLRMM;
253
- exports.DECNKM = DECNKM;
254
- exports.DECOM = DECOM;
255
- exports.DECRPM = DECRPM;
256
- exports.DECRQM = DECRQM;
257
- exports.DECTCEM = DECTCEM;
258
- exports.FocusEventMode = FocusEventMode;
259
- exports.GraphemeClusteringMode = GraphemeClusteringMode;
260
- exports.HideCursor = HideCursor;
261
- exports.HighlightMouseMode = HighlightMouseMode;
262
- exports.IRM = IRM;
263
- exports.InsertReplaceMode = InsertReplaceMode;
264
- exports.KAM = KAM;
265
- exports.KeyboardActionMode = KeyboardActionMode;
266
- exports.LNM = LNM;
267
- exports.LeftRightMarginMode = LeftRightMarginMode;
268
- exports.LineFeedNewLineMode = LineFeedNewLineMode;
269
- exports.LocalEchoMode = LocalEchoMode;
270
- exports.ModeSetting = ModeSetting;
271
- exports.NormalMouseMode = NormalMouseMode;
272
- exports.NumericKeypadMode = NumericKeypadMode;
273
- exports.OriginMode = OriginMode;
274
- exports.RM = RM;
275
- exports.RequestAltScreenMode = RequestAltScreenMode;
276
- exports.RequestAltScreenSaveCursorMode = RequestAltScreenSaveCursorMode;
277
- exports.RequestAnyEventMouseMode = RequestAnyEventMouseMode;
278
- exports.RequestAutoWrapMode = RequestAutoWrapMode;
279
- exports.RequestBackarrowKeyMode = RequestBackarrowKeyMode;
280
- exports.RequestBiDirectionalSupportMode = RequestBiDirectionalSupportMode;
281
- exports.RequestBracketedPasteMode = RequestBracketedPasteMode;
282
- exports.RequestButtonEventMouseMode = RequestButtonEventMouseMode;
283
- exports.RequestCursorKeysMode = RequestCursorKeysMode;
284
- exports.RequestFocusEventMode = RequestFocusEventMode;
285
- exports.RequestGraphemeClusteringMode = RequestGraphemeClusteringMode;
286
- exports.RequestHighlightMouseMode = RequestHighlightMouseMode;
287
- exports.RequestInsertReplaceMode = RequestInsertReplaceMode;
288
- exports.RequestKeyboardActionMode = RequestKeyboardActionMode;
289
- exports.RequestLeftRightMarginMode = RequestLeftRightMarginMode;
290
- exports.RequestLineFeedNewLineMode = RequestLineFeedNewLineMode;
291
- exports.RequestLocalEchoMode = RequestLocalEchoMode;
292
- exports.RequestNormalMouseMode = RequestNormalMouseMode;
293
- exports.RequestNumericKeypadMode = RequestNumericKeypadMode;
294
- exports.RequestOriginMode = RequestOriginMode;
295
- exports.RequestSaveCursorMode = RequestSaveCursorMode;
296
- exports.RequestSendReceiveMode = RequestSendReceiveMode;
297
- exports.RequestSgrExtMouseMode = RequestSgrExtMouseMode;
298
- exports.RequestSgrPixelExtMouseMode = RequestSgrPixelExtMouseMode;
299
- exports.RequestSynchronizedOutputMode = RequestSynchronizedOutputMode;
300
- exports.RequestTextCursorEnableMode = RequestTextCursorEnableMode;
301
- exports.RequestUrxvtExtMouseMode = RequestUrxvtExtMouseMode;
302
- exports.RequestUtf8ExtMouseMode = RequestUtf8ExtMouseMode;
303
- exports.RequestWin32InputMode = RequestWin32InputMode;
304
- exports.RequestX10MouseMode = RequestX10MouseMode;
305
- exports.ResetAltScreenMode = ResetAltScreenMode;
306
- exports.ResetAltScreenSaveCursorMode = ResetAltScreenSaveCursorMode;
307
- exports.ResetAnyEventMouseMode = ResetAnyEventMouseMode;
308
- exports.ResetAutoWrapMode = ResetAutoWrapMode;
309
- exports.ResetBackarrowKeyMode = ResetBackarrowKeyMode;
310
- exports.ResetBiDirectionalSupportMode = ResetBiDirectionalSupportMode;
311
- exports.ResetBracketedPasteMode = ResetBracketedPasteMode;
312
- exports.ResetButtonEventMouseMode = ResetButtonEventMouseMode;
313
- exports.ResetCursorKeysMode = ResetCursorKeysMode;
314
- exports.ResetFocusEventMode = ResetFocusEventMode;
315
- exports.ResetGraphemeClusteringMode = ResetGraphemeClusteringMode;
316
- exports.ResetHighlightMouseMode = ResetHighlightMouseMode;
317
- exports.ResetInsertReplaceMode = ResetInsertReplaceMode;
318
- exports.ResetKeyboardActionMode = ResetKeyboardActionMode;
319
- exports.ResetLeftRightMarginMode = ResetLeftRightMarginMode;
320
- exports.ResetLineFeedNewLineMode = ResetLineFeedNewLineMode;
321
- exports.ResetLocalEchoMode = ResetLocalEchoMode;
322
- exports.ResetNormalMouseMode = ResetNormalMouseMode;
323
- exports.ResetNumericKeypadMode = ResetNumericKeypadMode;
324
- exports.ResetOriginMode = ResetOriginMode;
325
- exports.ResetSaveCursorMode = ResetSaveCursorMode;
326
- exports.ResetSendReceiveMode = ResetSendReceiveMode;
327
- exports.ResetSgrExtMouseMode = ResetSgrExtMouseMode;
328
- exports.ResetSgrPixelExtMouseMode = ResetSgrPixelExtMouseMode;
329
- exports.ResetSynchronizedOutputMode = ResetSynchronizedOutputMode;
330
- exports.ResetTextCursorEnableMode = ResetTextCursorEnableMode;
331
- exports.ResetUrxvtExtMouseMode = ResetUrxvtExtMouseMode;
332
- exports.ResetUtf8ExtMouseMode = ResetUtf8ExtMouseMode;
333
- exports.ResetWin32InputMode = ResetWin32InputMode;
334
- exports.ResetX10MouseMode = ResetX10MouseMode;
335
- exports.SM = SM;
336
- exports.SRM = SRM;
337
- exports.SaveCursorMode = SaveCursorMode;
338
- exports.SendReceiveMode = SendReceiveMode;
339
- exports.SetAltScreenMode = SetAltScreenMode;
340
- exports.SetAltScreenSaveCursorMode = SetAltScreenSaveCursorMode;
341
- exports.SetAnyEventMouseMode = SetAnyEventMouseMode;
342
- exports.SetAutoWrapMode = SetAutoWrapMode;
343
- exports.SetBackarrowKeyMode = SetBackarrowKeyMode;
344
- exports.SetBiDirectionalSupportMode = SetBiDirectionalSupportMode;
345
- exports.SetBracketedPasteMode = SetBracketedPasteMode;
346
- exports.SetButtonEventMouseMode = SetButtonEventMouseMode;
347
- exports.SetCursorKeysMode = SetCursorKeysMode;
348
- exports.SetFocusEventMode = SetFocusEventMode;
349
- exports.SetGraphemeClusteringMode = SetGraphemeClusteringMode;
350
- exports.SetHighlightMouseMode = SetHighlightMouseMode;
351
- exports.SetInsertReplaceMode = SetInsertReplaceMode;
352
- exports.SetKeyboardActionMode = SetKeyboardActionMode;
353
- exports.SetLeftRightMarginMode = SetLeftRightMarginMode;
354
- exports.SetLineFeedNewLineMode = SetLineFeedNewLineMode;
355
- exports.SetLocalEchoMode = SetLocalEchoMode;
356
- exports.SetNormalMouseMode = SetNormalMouseMode;
357
- exports.SetNumericKeypadMode = SetNumericKeypadMode;
358
- exports.SetOriginMode = SetOriginMode;
359
- exports.SetSaveCursorMode = SetSaveCursorMode;
360
- exports.SetSendReceiveMode = SetSendReceiveMode;
361
- exports.SetSgrExtMouseMode = SetSgrExtMouseMode;
362
- exports.SetSgrPixelExtMouseMode = SetSgrPixelExtMouseMode;
363
- exports.SetSynchronizedOutputMode = SetSynchronizedOutputMode;
364
- exports.SetTextCursorEnableMode = SetTextCursorEnableMode;
365
- exports.SetUrxvtExtMouseMode = SetUrxvtExtMouseMode;
366
- exports.SetUtf8ExtMouseMode = SetUtf8ExtMouseMode;
367
- exports.SetWin32InputMode = SetWin32InputMode;
368
- exports.SetX10MouseMode = SetX10MouseMode;
369
- exports.SgrExtMouseMode = SgrExtMouseMode;
370
- exports.SgrPixelExtMouseMode = SgrPixelExtMouseMode;
371
- exports.ShowCursor = ShowCursor;
372
- exports.SynchronizedOutputMode = SynchronizedOutputMode;
373
- exports.TextCursorEnableMode = TextCursorEnableMode;
374
- exports.UrxvtExtMouseMode = UrxvtExtMouseMode;
375
- exports.Utf8ExtMouseMode = Utf8ExtMouseMode;
376
- exports.Win32InputMode = Win32InputMode;
377
- exports.X10MouseMode = X10MouseMode;
378
- exports.createAnsiMode = createAnsiMode;
379
- exports.createDecMode = createDecMode;
380
- exports.isModeNotRecognized = isModeNotRecognized;
381
- exports.isModePermanentlyReset = isModePermanentlyReset;
382
- exports.isModePermanentlySet = isModePermanentlySet;
383
- exports.isModeReset = isModeReset;
384
- exports.isModeSet = isModeSet;
385
- exports.reportMode = reportMode;
386
- exports.requestMode = requestMode;
387
- exports.resetMode = resetMode;
388
- exports.setMode = setMode;