@visulima/ansi 2.0.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/LICENSE.md +1 -132
- package/README.md +226 -226
- package/dist/alternative-screen.d.ts +6 -74
- package/dist/alternative-screen.js +1 -0
- package/dist/clear.d.ts +6 -77
- package/dist/clear.js +1 -0
- package/dist/cursor.d.ts +48 -429
- package/dist/cursor.js +1 -0
- package/dist/erase.d.ts +14 -197
- package/dist/erase.js +1 -0
- package/dist/hyperlink.d.ts +2 -26
- package/dist/hyperlink.js +1 -0
- package/dist/image.d.ts +7 -69
- package/dist/image.js +1 -0
- package/dist/index.d.ts +30 -35
- package/dist/index.js +1 -0
- package/dist/iterm2.d.ts +43 -58
- package/dist/iterm2.js +1 -0
- package/dist/mode.d.ts +174 -648
- package/dist/mode.js +1 -0
- package/dist/mouse.d.ts +21 -203
- package/dist/mouse.js +1 -0
- package/dist/packem_shared/IT2_AUTO-BYrffRAq.js +1 -0
- package/dist/packem_shared/ITerm2File-C88DBJC-.js +1 -0
- package/dist/packem_shared/constants-D12jy2Zh.js +1 -0
- package/dist/packem_shared/cursor-D2UOfUc_.js +1 -0
- package/dist/packem_shared/resetProgressBar-BtBbpWCM.js +1 -0
- package/dist/packem_shared/restoreCursor-D3XBmqcY.js +2 -0
- package/dist/passthrough.d.ts +6 -77
- package/dist/passthrough.js +1 -0
- package/dist/reset.d.ts +4 -26
- package/dist/reset.js +1 -0
- package/dist/screen.d.ts +11 -234
- package/dist/screen.js +1 -0
- package/dist/scroll.d.ts +6 -67
- package/dist/scroll.js +1 -0
- package/dist/status.d.ts +48 -498
- package/dist/status.js +1 -0
- package/dist/strip.d.ts +2 -22
- package/dist/strip.js +1 -0
- package/dist/termcap.d.ts +5 -38
- package/dist/termcap.js +1 -0
- package/dist/title.d.ts +10 -185
- package/dist/title.js +1 -0
- package/dist/window-ops.d.ts +24 -396
- package/dist/window-ops.js +1 -0
- package/dist/xterm.d.ts +12 -94
- package/dist/xterm.js +1 -0
- package/package.json +45 -230
- package/dist/alternative-screen.cjs +0 -17
- package/dist/alternative-screen.d.cts +0 -74
- package/dist/alternative-screen.d.mts +0 -74
- package/dist/alternative-screen.mjs +0 -10
- package/dist/clear.cjs +0 -17
- package/dist/clear.d.cts +0 -77
- package/dist/clear.d.mts +0 -77
- package/dist/clear.mjs +0 -10
- package/dist/constants.d.cts +0 -20
- package/dist/constants.d.mts +0 -20
- package/dist/constants.d.ts +0 -20
- package/dist/cursor.cjs +0 -41
- package/dist/cursor.d.cts +0 -437
- package/dist/cursor.d.mts +0 -437
- package/dist/cursor.mjs +0 -3
- package/dist/erase.cjs +0 -64
- package/dist/erase.d.cts +0 -206
- package/dist/erase.d.mts +0 -206
- package/dist/erase.mjs +0 -49
- package/dist/helpers.d.cts +0 -14
- package/dist/helpers.d.mts +0 -14
- package/dist/helpers.d.ts +0 -14
- package/dist/hyperlink.cjs +0 -9
- package/dist/hyperlink.d.cts +0 -27
- package/dist/hyperlink.d.mts +0 -27
- package/dist/hyperlink.mjs +0 -7
- package/dist/image.cjs +0 -28
- package/dist/image.d.cts +0 -73
- package/dist/image.d.mts +0 -73
- package/dist/image.mjs +0 -24
- package/dist/index.cjs +0 -246
- package/dist/index.d.cts +0 -35
- package/dist/index.d.mts +0 -35
- package/dist/index.mjs +0 -25
- package/dist/iterm2/iterm2-properties.d.cts +0 -135
- package/dist/iterm2/iterm2-properties.d.mts +0 -135
- package/dist/iterm2/iterm2-properties.d.ts +0 -135
- package/dist/iterm2/iterm2-sequences.d.cts +0 -96
- package/dist/iterm2/iterm2-sequences.d.mts +0 -96
- package/dist/iterm2/iterm2-sequences.d.ts +0 -96
- package/dist/iterm2.cjs +0 -26
- package/dist/iterm2.d.cts +0 -58
- package/dist/iterm2.d.mts +0 -58
- package/dist/iterm2.mjs +0 -14
- package/dist/mode.cjs +0 -388
- package/dist/mode.d.cts +0 -657
- package/dist/mode.d.mts +0 -657
- package/dist/mode.mjs +0 -235
- package/dist/mouse.cjs +0 -127
- package/dist/mouse.d.cts +0 -230
- package/dist/mouse.d.mts +0 -230
- package/dist/mouse.mjs +0 -108
- package/dist/packem_shared/IT2_AUTO-5vTJQMm6.cjs +0 -15
- package/dist/packem_shared/IT2_AUTO-DnfCUXso.mjs +0 -8
- package/dist/packem_shared/ITerm2File-BGPqNSjB.cjs +0 -137
- package/dist/packem_shared/ITerm2File-DKFkdqdA.mjs +0 -130
- package/dist/packem_shared/constants-BK26O-46.cjs +0 -17
- package/dist/packem_shared/constants-CE7WkXh_.mjs +0 -9
- package/dist/packem_shared/cursor-CQKLCu7U.cjs +0 -105
- package/dist/packem_shared/cursor-DhFQcQ9g.mjs +0 -73
- package/dist/packem_shared/restoreCursor-C6pNB8UY.mjs +0 -336
- package/dist/packem_shared/restoreCursor-DC_ZKZwT.cjs +0 -342
- package/dist/passthrough.cjs +0 -38
- package/dist/passthrough.d.cts +0 -77
- package/dist/passthrough.d.mts +0 -77
- package/dist/passthrough.mjs +0 -31
- package/dist/reset.cjs +0 -9
- package/dist/reset.d.cts +0 -26
- package/dist/reset.d.mts +0 -26
- package/dist/reset.mjs +0 -4
- package/dist/screen.cjs +0 -41
- package/dist/screen.d.cts +0 -234
- package/dist/screen.d.mts +0 -234
- package/dist/screen.mjs +0 -29
- package/dist/scroll.cjs +0 -27
- package/dist/scroll.d.cts +0 -67
- package/dist/scroll.d.mts +0 -67
- package/dist/scroll.mjs +0 -20
- package/dist/status.cjs +0 -147
- package/dist/status.d.cts +0 -501
- package/dist/status.d.mts +0 -501
- package/dist/status.mjs +0 -104
- package/dist/strip.cjs +0 -20
- package/dist/strip.d.cts +0 -23
- package/dist/strip.d.mts +0 -23
- package/dist/strip.mjs +0 -18
- package/dist/termcap.cjs +0 -33
- package/dist/termcap.d.cts +0 -38
- package/dist/termcap.d.mts +0 -38
- package/dist/termcap.mjs +0 -27
- package/dist/title.cjs +0 -31
- package/dist/title.d.cts +0 -185
- package/dist/title.d.mts +0 -185
- package/dist/title.mjs +0 -20
- package/dist/window-ops.cjs +0 -85
- package/dist/window-ops.d.cts +0 -418
- package/dist/window-ops.d.mts +0 -418
- package/dist/window-ops.mjs +0 -63
- package/dist/xterm.cjs +0 -48
- package/dist/xterm.d.cts +0 -94
- package/dist/xterm.d.mts +0 -94
- package/dist/xterm.mjs +0 -35
package/dist/image.d.cts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { LiteralUnion } from "type-fest";
|
|
2
|
-
/**
|
|
3
|
-
* Options for controlling the display of an inline image in iTerm2.
|
|
4
|
-
*/
|
|
5
|
-
export interface ImageOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The display height of the image. It can be specified as:
|
|
8
|
-
* - A number: Interpreted as the number of character cells (e.g., `10`).
|
|
9
|
-
* - A string with `px`: Interpreted as pixels (e.g., `"100px"`).
|
|
10
|
-
* - A string with `%`: Interpreted as a percentage of the terminal session's height (e.g., `"50%"`).
|
|
11
|
-
* - The string `"auto"`: The image's inherent height will be used, or the terminal will decide.
|
|
12
|
-
*/
|
|
13
|
-
readonly height?: LiteralUnion<"auto", number | string>;
|
|
14
|
-
/**
|
|
15
|
-
* Controls whether the image's aspect ratio is preserved when scaling.
|
|
16
|
-
* - If `true` (default), the aspect ratio is preserved.
|
|
17
|
-
* - If `false`, the image may be stretched to fit the specified width and height.
|
|
18
|
-
* Corresponds to the `preserveAspectRatio` argument in the iTerm2 sequence (`1` for true, `0` for false).
|
|
19
|
-
* @default true
|
|
20
|
-
*/
|
|
21
|
-
readonly preserveAspectRatio?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The display width of the image. It can be specified as:
|
|
24
|
-
* - A number: Interpreted as the number of character cells (e.g., `20`).
|
|
25
|
-
* - A string with `px`: Interpreted as pixels (e.g., `"200px"`).
|
|
26
|
-
* - A string with `%`: Interpreted as a percentage of the terminal session's width (e.g., `"75%"`).
|
|
27
|
-
* - The string `"auto"`: The image's inherent width will be used, or the terminal will decide.
|
|
28
|
-
*/
|
|
29
|
-
readonly width?: LiteralUnion<"auto", number | string>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Generates an ANSI escape sequence for displaying an image inline, primarily for iTerm2.
|
|
33
|
-
*
|
|
34
|
-
* This function constructs a proprietary iTerm2 escape sequence (`OSC 1337 ; File = [arguments] : <base64_data> BEL`)
|
|
35
|
-
* that allows raw image data to be displayed directly in the terminal.
|
|
36
|
-
* @param data The raw image data as a `Uint8Array`. This data will be Base64 encoded.
|
|
37
|
-
* @param options Optional parameters to control how the image is displayed (e.g., width, height, aspect ratio).
|
|
38
|
-
* See {@link ImageOptions}.
|
|
39
|
-
* @returns A string containing the ANSI escape sequence for displaying the image in iTerm2.
|
|
40
|
-
* Returns an empty string if `data` is null or undefined, though TypeScript should prevent this.
|
|
41
|
-
* @example
|
|
42
|
-
* ```typescript
|
|
43
|
-
* import { image } from '@visulima/ansi/image'; // Adjust import path
|
|
44
|
-
* import { promises as fs } from 'fs';
|
|
45
|
-
*
|
|
46
|
-
* async function displayImage() {
|
|
47
|
-
* try {
|
|
48
|
-
* const imageData = await fs.readFile('path/to/your/image.png');
|
|
49
|
-
* const imageSequence = image(new Uint8Array(imageData), {
|
|
50
|
-
* width: 50, // 50 character cells wide
|
|
51
|
-
* height: "auto",
|
|
52
|
-
* preserveAspectRatio: true,
|
|
53
|
-
* });
|
|
54
|
-
* console.log(imageSequence);
|
|
55
|
-
* } catch (error) {
|
|
56
|
-
* console.error("Error reading or displaying image:", error);
|
|
57
|
-
* }
|
|
58
|
-
* }
|
|
59
|
-
*
|
|
60
|
-
* displayImage();
|
|
61
|
-
* ```
|
|
62
|
-
* @remarks
|
|
63
|
-
* - This sequence is specific to iTerm2 and may not work in other terminal emulators.
|
|
64
|
-
* - For Node.js environments, `Buffer.from(data).toString("base64")` is used for Base64 encoding.
|
|
65
|
-
* In browser environments, a polyfill or an alternative method for Base64 encoding `Uint8Array` would be necessary
|
|
66
|
-
* if `Buffer` is not available (e.g., `btoa(String.fromCharCode(...data))` after careful handling of binary data).
|
|
67
|
-
* - The `name` parameter (for filename) is not directly supported by this simplified helper but is part of the
|
|
68
|
-
* full iTerm2 inline image protocol. For more advanced features, consider using the more detailed iTerm2 sequence
|
|
69
|
-
* builders in `iterm2/` files.
|
|
70
|
-
* @see {@link https://iterm2.com/documentation-images.html} iTerm2 Inline Images Protocol.
|
|
71
|
-
* @see {@link ImageOptions}
|
|
72
|
-
*/
|
|
73
|
-
export declare const image: (data: Uint8Array, options?: ImageOptions) => string;
|
package/dist/image.d.mts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { LiteralUnion } from "type-fest";
|
|
2
|
-
/**
|
|
3
|
-
* Options for controlling the display of an inline image in iTerm2.
|
|
4
|
-
*/
|
|
5
|
-
export interface ImageOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The display height of the image. It can be specified as:
|
|
8
|
-
* - A number: Interpreted as the number of character cells (e.g., `10`).
|
|
9
|
-
* - A string with `px`: Interpreted as pixels (e.g., `"100px"`).
|
|
10
|
-
* - A string with `%`: Interpreted as a percentage of the terminal session's height (e.g., `"50%"`).
|
|
11
|
-
* - The string `"auto"`: The image's inherent height will be used, or the terminal will decide.
|
|
12
|
-
*/
|
|
13
|
-
readonly height?: LiteralUnion<"auto", number | string>;
|
|
14
|
-
/**
|
|
15
|
-
* Controls whether the image's aspect ratio is preserved when scaling.
|
|
16
|
-
* - If `true` (default), the aspect ratio is preserved.
|
|
17
|
-
* - If `false`, the image may be stretched to fit the specified width and height.
|
|
18
|
-
* Corresponds to the `preserveAspectRatio` argument in the iTerm2 sequence (`1` for true, `0` for false).
|
|
19
|
-
* @default true
|
|
20
|
-
*/
|
|
21
|
-
readonly preserveAspectRatio?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The display width of the image. It can be specified as:
|
|
24
|
-
* - A number: Interpreted as the number of character cells (e.g., `20`).
|
|
25
|
-
* - A string with `px`: Interpreted as pixels (e.g., `"200px"`).
|
|
26
|
-
* - A string with `%`: Interpreted as a percentage of the terminal session's width (e.g., `"75%"`).
|
|
27
|
-
* - The string `"auto"`: The image's inherent width will be used, or the terminal will decide.
|
|
28
|
-
*/
|
|
29
|
-
readonly width?: LiteralUnion<"auto", number | string>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Generates an ANSI escape sequence for displaying an image inline, primarily for iTerm2.
|
|
33
|
-
*
|
|
34
|
-
* This function constructs a proprietary iTerm2 escape sequence (`OSC 1337 ; File = [arguments] : <base64_data> BEL`)
|
|
35
|
-
* that allows raw image data to be displayed directly in the terminal.
|
|
36
|
-
* @param data The raw image data as a `Uint8Array`. This data will be Base64 encoded.
|
|
37
|
-
* @param options Optional parameters to control how the image is displayed (e.g., width, height, aspect ratio).
|
|
38
|
-
* See {@link ImageOptions}.
|
|
39
|
-
* @returns A string containing the ANSI escape sequence for displaying the image in iTerm2.
|
|
40
|
-
* Returns an empty string if `data` is null or undefined, though TypeScript should prevent this.
|
|
41
|
-
* @example
|
|
42
|
-
* ```typescript
|
|
43
|
-
* import { image } from '@visulima/ansi/image'; // Adjust import path
|
|
44
|
-
* import { promises as fs } from 'fs';
|
|
45
|
-
*
|
|
46
|
-
* async function displayImage() {
|
|
47
|
-
* try {
|
|
48
|
-
* const imageData = await fs.readFile('path/to/your/image.png');
|
|
49
|
-
* const imageSequence = image(new Uint8Array(imageData), {
|
|
50
|
-
* width: 50, // 50 character cells wide
|
|
51
|
-
* height: "auto",
|
|
52
|
-
* preserveAspectRatio: true,
|
|
53
|
-
* });
|
|
54
|
-
* console.log(imageSequence);
|
|
55
|
-
* } catch (error) {
|
|
56
|
-
* console.error("Error reading or displaying image:", error);
|
|
57
|
-
* }
|
|
58
|
-
* }
|
|
59
|
-
*
|
|
60
|
-
* displayImage();
|
|
61
|
-
* ```
|
|
62
|
-
* @remarks
|
|
63
|
-
* - This sequence is specific to iTerm2 and may not work in other terminal emulators.
|
|
64
|
-
* - For Node.js environments, `Buffer.from(data).toString("base64")` is used for Base64 encoding.
|
|
65
|
-
* In browser environments, a polyfill or an alternative method for Base64 encoding `Uint8Array` would be necessary
|
|
66
|
-
* if `Buffer` is not available (e.g., `btoa(String.fromCharCode(...data))` after careful handling of binary data).
|
|
67
|
-
* - The `name` parameter (for filename) is not directly supported by this simplified helper but is part of the
|
|
68
|
-
* full iTerm2 inline image protocol. For more advanced features, consider using the more detailed iTerm2 sequence
|
|
69
|
-
* builders in `iterm2/` files.
|
|
70
|
-
* @see {@link https://iterm2.com/documentation-images.html} iTerm2 Inline Images Protocol.
|
|
71
|
-
* @see {@link ImageOptions}
|
|
72
|
-
*/
|
|
73
|
-
export declare const image: (data: Uint8Array, options?: ImageOptions) => string;
|
package/dist/image.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Buffer } from 'node:buffer';
|
|
2
|
-
import { O as OSC, B as BEL } from './packem_shared/constants-CE7WkXh_.mjs';
|
|
3
|
-
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
-
const image = /* @__PURE__ */ __name((data, options = {}) => {
|
|
7
|
-
if (!data) {
|
|
8
|
-
return "";
|
|
9
|
-
}
|
|
10
|
-
let returnValue = `${OSC}1337;File=inline=1`;
|
|
11
|
-
if (options.width !== void 0) {
|
|
12
|
-
returnValue += `;width=${options.width}`;
|
|
13
|
-
}
|
|
14
|
-
if (options.height !== void 0) {
|
|
15
|
-
returnValue += `;height=${options.height}`;
|
|
16
|
-
}
|
|
17
|
-
if (options.preserveAspectRatio === false) {
|
|
18
|
-
returnValue += ";preserveAspectRatio=0";
|
|
19
|
-
}
|
|
20
|
-
const base64Data = Buffer.from(data).toString("base64");
|
|
21
|
-
return `${returnValue}:${base64Data}${BEL}`;
|
|
22
|
-
}, "image");
|
|
23
|
-
|
|
24
|
-
export { image };
|
package/dist/index.cjs
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
-
|
|
5
|
-
const alternativeScreen = require('./alternative-screen.cjs');
|
|
6
|
-
const clear = require('./clear.cjs');
|
|
7
|
-
const cursor = require('./packem_shared/cursor-CQKLCu7U.cjs');
|
|
8
|
-
const erase = require('./erase.cjs');
|
|
9
|
-
const hyperlink = require('./hyperlink.cjs');
|
|
10
|
-
const image = require('./image.cjs');
|
|
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');
|
|
17
|
-
const scroll = require('./scroll.cjs');
|
|
18
|
-
const status = require('./status.cjs');
|
|
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');
|
|
26
|
-
|
|
27
|
-
const beep = "\x07";
|
|
28
|
-
|
|
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;
|
|
45
|
-
exports.cursorBackward = cursor.cursorBackward;
|
|
46
|
-
exports.cursorBackwardTab = cursor.cursorBackwardTab;
|
|
47
|
-
exports.cursorDown = cursor.cursorDown;
|
|
48
|
-
exports.cursorForward = cursor.cursorForward;
|
|
49
|
-
exports.cursorHide = cursor.cursorHide;
|
|
50
|
-
exports.cursorHorizontalAbsolute = cursor.cursorHorizontalAbsolute;
|
|
51
|
-
exports.cursorHorizontalForwardTab = cursor.cursorHorizontalForwardTab;
|
|
52
|
-
exports.cursorLeft = cursor.cursorLeft;
|
|
53
|
-
exports.cursorMove = cursor.cursorMove;
|
|
54
|
-
exports.cursorNextLine = cursor.cursorNextLine;
|
|
55
|
-
exports.cursorPosition = cursor.cursorPosition;
|
|
56
|
-
exports.cursorPreviousLine = cursor.cursorPreviousLine;
|
|
57
|
-
exports.cursorRestore = cursor.cursorRestore;
|
|
58
|
-
exports.cursorSave = cursor.cursorSave;
|
|
59
|
-
exports.cursorShow = cursor.cursorShow;
|
|
60
|
-
exports.cursorTo = cursor.cursorTo;
|
|
61
|
-
exports.cursorToColumn1 = cursor.cursorToColumn1;
|
|
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;
|
|
67
|
-
exports.eraseDown = erase.eraseDown;
|
|
68
|
-
exports.eraseInLine = erase.eraseInLine;
|
|
69
|
-
exports.eraseLine = erase.eraseLine;
|
|
70
|
-
exports.eraseLineEnd = erase.eraseLineEnd;
|
|
71
|
-
exports.eraseLineStart = erase.eraseLineStart;
|
|
72
|
-
exports.eraseLines = erase.eraseLines;
|
|
73
|
-
exports.eraseScreen = erase.eraseScreen;
|
|
74
|
-
exports.eraseScreenAndScrollback = erase.eraseScreenAndScrollback;
|
|
75
|
-
exports.eraseUp = erase.eraseUp;
|
|
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;
|
|
156
|
-
exports.scrollDown = scroll.scrollDown;
|
|
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;
|
|
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;
|
|
246
|
-
exports.beep = beep;
|
package/dist/index.d.cts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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';
|
|
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';
|
|
22
|
-
|
|
23
|
-
const beep = "\x07";
|
|
24
|
-
|
|
25
|
-
export { beep };
|