@visulima/ansi 2.0.0 → 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.
Files changed (152) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/LICENSE.md +1 -132
  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 +1 -27
  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 +1 -23
  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 -29
  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 -25
  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
package/dist/clear.d.cts DELETED
@@ -1,77 +0,0 @@
1
- /**
2
- * Moves the cursor to the top-left (0,0 in 0-indexed terms) and erases from the cursor to the end of the screen.
3
- *
4
- * This sequence is a combination of:
5
- * 1. {@link cursorTo}(0, 0): Moves the cursor to the first row, first column.
6
- * (Equivalent to `CSI 1;1H` as `cursorTo` uses 0-indexed arguments which are converted to 1-indexed for the sequence).
7
- * 2. {@link eraseDisplay}({@link EraseDisplayMode.ToEnd}): Erases from the cursor position to the end of the screen (`CSI 0J` or `CSI J`).
8
- *
9
- * Effective combined sequence: `CSI 1;1H CSI J` (or `CSI 1;1H CSI 0J`).
10
- * @see {@link cursorTo}
11
- * @see {@link eraseDisplay}
12
- * @see {@link EraseDisplayMode.ToEnd}
13
- */
14
- export declare const clearScreenFromTopLeft: string;
15
- /**
16
- * Erases the entire current line and moves the cursor to the beginning of that line (column 1).
17
- *
18
- * This sequence is a combination of:
19
- * 1. {@link eraseInLine}({@link EraseLineMode.EntireLine}): Erases the entire current line (`CSI 2K`).
20
- * 2. `CSI G`: Moves the cursor to column 1 of the current line (Cursor Horizontal Absolute).
21
- * Alternatively, a carriage return (`\r`) could achieve a similar cursor move to the start of the line on many systems.
22
- *
23
- * Effective combined sequence: `CSI 2K CSI G`.
24
- * @see {@link eraseInLine}
25
- * @see {@link EraseLineMode.EntireLine}
26
- */
27
- export declare const clearLineAndHomeCursor: string;
28
- /**
29
- * Homes the cursor to the top-left position (row 1, column 1) and erases the entire screen.
30
- *
31
- * This sequence is a combination of:
32
- * 1. `CSI H`: Moves the cursor to the home position (top-left, equivalent to `CSI 1;1H`).
33
- * 2. {@link eraseDisplay}({@link EraseDisplayMode.EntireScreen}): Erases the entire screen (`CSI 2J`).
34
- *
35
- * Effective combined sequence: `CSI H CSI 2J`.
36
- * @remarks This is a very common sequence for clearing the visible terminal window.
37
- * @see {@link cursorPosition} (which `CSI H` relates to)
38
- * @see {@link eraseDisplay}
39
- * @see {@link EraseDisplayMode.EntireScreen}
40
- */
41
- export declare const clearScreenAndHomeCursor: string;
42
- /**
43
- * Clears the entire terminal display, including the scrollback buffer on supported terminals,
44
- * and attempts to reset the terminal to its initial (or a more pristine) state.
45
- *
46
- * This is generally a more comprehensive and forceful clear operation than just erasing the
47
- * visible screen content (like {@link clearScreenAndHomeCursor}).
48
- *
49
- * The exact behavior and sequences used can vary by terminal and operating system:
50
- *
51
- * - **On Windows:**
52
- * It typically uses `CSI 2J` (erase entire screen) followed by `CSI 0f`.
53
- * `CSI 0f` (or `CSI ;f`, `CSI 0;0f`) is an SGR sequence that also often acts as a cursor home command,
54
- * though its standardization can be less consistent than `CSI H`.
55
- * The primary goal is to clear the screen and move the cursor to the top-left.
56
- *
57
- * - **On other platforms (e.g., Linux, macOS with XTerm-like terminals):**
58
- * A more robust combination is used:
59
- * 1. {@link eraseDisplay}({@link EraseDisplayMode.EntireScreen}) (`CSI 2J`): Erases the entire visible screen.
60
- * 2. {@link eraseDisplay}({@link EraseDisplayMode.EntireScreenAndScrollback}) (`CSI 3J`): Erases the scrollback buffer (XTerm-specific, but widely supported).
61
- * 3. `CSI H`: Moves the cursor to the home position (top-left).
62
- * 4. `ESC c` (RIS - Reset to Initial State): This is the most powerful reset sequence. It typically resets the terminal
63
- * to its power-on state, clearing character sets, SGR attributes, modes, and more.
64
- * @returns A string containing the ANSI escape sequence(s) for resetting the terminal.
65
- * @example
66
- * ```typescript
67
- * import { resetTerminal } from '@visulima/ansi/clear';
68
- *
69
- * process.stdout.write(resetTerminal);
70
- * // The terminal attempts a full reset.
71
- * ```
72
- * @see {@link eraseDisplay}
73
- * @see {@link EraseDisplayMode.EntireScreen}
74
- * @see {@link EraseDisplayMode.EntireScreenAndScrollback}
75
- * @see {@link https://vt100.net/docs/vt510-rm/RIS.html} RIS documentation.
76
- */
77
- export declare const resetTerminal: string;
package/dist/clear.d.mts DELETED
@@ -1,77 +0,0 @@
1
- /**
2
- * Moves the cursor to the top-left (0,0 in 0-indexed terms) and erases from the cursor to the end of the screen.
3
- *
4
- * This sequence is a combination of:
5
- * 1. {@link cursorTo}(0, 0): Moves the cursor to the first row, first column.
6
- * (Equivalent to `CSI 1;1H` as `cursorTo` uses 0-indexed arguments which are converted to 1-indexed for the sequence).
7
- * 2. {@link eraseDisplay}({@link EraseDisplayMode.ToEnd}): Erases from the cursor position to the end of the screen (`CSI 0J` or `CSI J`).
8
- *
9
- * Effective combined sequence: `CSI 1;1H CSI J` (or `CSI 1;1H CSI 0J`).
10
- * @see {@link cursorTo}
11
- * @see {@link eraseDisplay}
12
- * @see {@link EraseDisplayMode.ToEnd}
13
- */
14
- export declare const clearScreenFromTopLeft: string;
15
- /**
16
- * Erases the entire current line and moves the cursor to the beginning of that line (column 1).
17
- *
18
- * This sequence is a combination of:
19
- * 1. {@link eraseInLine}({@link EraseLineMode.EntireLine}): Erases the entire current line (`CSI 2K`).
20
- * 2. `CSI G`: Moves the cursor to column 1 of the current line (Cursor Horizontal Absolute).
21
- * Alternatively, a carriage return (`\r`) could achieve a similar cursor move to the start of the line on many systems.
22
- *
23
- * Effective combined sequence: `CSI 2K CSI G`.
24
- * @see {@link eraseInLine}
25
- * @see {@link EraseLineMode.EntireLine}
26
- */
27
- export declare const clearLineAndHomeCursor: string;
28
- /**
29
- * Homes the cursor to the top-left position (row 1, column 1) and erases the entire screen.
30
- *
31
- * This sequence is a combination of:
32
- * 1. `CSI H`: Moves the cursor to the home position (top-left, equivalent to `CSI 1;1H`).
33
- * 2. {@link eraseDisplay}({@link EraseDisplayMode.EntireScreen}): Erases the entire screen (`CSI 2J`).
34
- *
35
- * Effective combined sequence: `CSI H CSI 2J`.
36
- * @remarks This is a very common sequence for clearing the visible terminal window.
37
- * @see {@link cursorPosition} (which `CSI H` relates to)
38
- * @see {@link eraseDisplay}
39
- * @see {@link EraseDisplayMode.EntireScreen}
40
- */
41
- export declare const clearScreenAndHomeCursor: string;
42
- /**
43
- * Clears the entire terminal display, including the scrollback buffer on supported terminals,
44
- * and attempts to reset the terminal to its initial (or a more pristine) state.
45
- *
46
- * This is generally a more comprehensive and forceful clear operation than just erasing the
47
- * visible screen content (like {@link clearScreenAndHomeCursor}).
48
- *
49
- * The exact behavior and sequences used can vary by terminal and operating system:
50
- *
51
- * - **On Windows:**
52
- * It typically uses `CSI 2J` (erase entire screen) followed by `CSI 0f`.
53
- * `CSI 0f` (or `CSI ;f`, `CSI 0;0f`) is an SGR sequence that also often acts as a cursor home command,
54
- * though its standardization can be less consistent than `CSI H`.
55
- * The primary goal is to clear the screen and move the cursor to the top-left.
56
- *
57
- * - **On other platforms (e.g., Linux, macOS with XTerm-like terminals):**
58
- * A more robust combination is used:
59
- * 1. {@link eraseDisplay}({@link EraseDisplayMode.EntireScreen}) (`CSI 2J`): Erases the entire visible screen.
60
- * 2. {@link eraseDisplay}({@link EraseDisplayMode.EntireScreenAndScrollback}) (`CSI 3J`): Erases the scrollback buffer (XTerm-specific, but widely supported).
61
- * 3. `CSI H`: Moves the cursor to the home position (top-left).
62
- * 4. `ESC c` (RIS - Reset to Initial State): This is the most powerful reset sequence. It typically resets the terminal
63
- * to its power-on state, clearing character sets, SGR attributes, modes, and more.
64
- * @returns A string containing the ANSI escape sequence(s) for resetting the terminal.
65
- * @example
66
- * ```typescript
67
- * import { resetTerminal } from '@visulima/ansi/clear';
68
- *
69
- * process.stdout.write(resetTerminal);
70
- * // The terminal attempts a full reset.
71
- * ```
72
- * @see {@link eraseDisplay}
73
- * @see {@link EraseDisplayMode.EntireScreen}
74
- * @see {@link EraseDisplayMode.EntireScreenAndScrollback}
75
- * @see {@link https://vt100.net/docs/vt510-rm/RIS.html} RIS documentation.
76
- */
77
- export declare const resetTerminal: string;
package/dist/clear.mjs DELETED
@@ -1,10 +0,0 @@
1
- import { C as CSI, E as ESC } from './packem_shared/constants-CE7WkXh_.mjs';
2
- import { s as cursorTo, A as isWindows } from './packem_shared/cursor-DhFQcQ9g.mjs';
3
- import { eraseDisplay, EraseDisplayMode, eraseInLine, EraseLineMode } from './erase.mjs';
4
-
5
- const clearScreenFromTopLeft = cursorTo(0, 0) + eraseDisplay(EraseDisplayMode.ToEnd);
6
- const clearLineAndHomeCursor = `${eraseInLine(EraseLineMode.EntireLine) + CSI}G`;
7
- const clearScreenAndHomeCursor = `${CSI}H${eraseDisplay(EraseDisplayMode.EntireScreen)}`;
8
- const resetTerminal = isWindows ? `${eraseDisplay(EraseDisplayMode.EntireScreen) + CSI}0f` : `${eraseDisplay(EraseDisplayMode.EntireScreen) + eraseDisplay(EraseDisplayMode.EntireScreenAndScrollback) + CSI}H${ESC}c`;
9
-
10
- export { clearLineAndHomeCursor, clearScreenAndHomeCursor, clearScreenFromTopLeft, resetTerminal };
@@ -1,20 +0,0 @@
1
- /** Escape character (\u001B). */
2
- export declare const ESC: string;
3
- /** Control Sequence Introducer (ESC [). */
4
- export declare const CSI: string;
5
- /** Operating System Command (ESC ]). */
6
- export declare const OSC: string;
7
- /** Bell character (\u0007). Often used to terminate OSC sequences. */
8
- export declare const BEL: string;
9
- /** Separator used in some ANSI sequences, typically a semicolon. */
10
- export declare const SEP: string;
11
- /** Device Control String (ESC P). */
12
- export declare const DCS: string;
13
- /** String Terminator (ESC \\). Used to terminate DCS, SOS, PM, APC sequences. */
14
- export declare const ST: string;
15
- /** Application Program Command (ESC _). */
16
- export declare const APC: string;
17
- /** Start of String (ESC X). */
18
- export declare const SOS: string;
19
- /** Privacy Message (ESC ^). */
20
- export declare const PM: string;
@@ -1,20 +0,0 @@
1
- /** Escape character (\u001B). */
2
- export declare const ESC: string;
3
- /** Control Sequence Introducer (ESC [). */
4
- export declare const CSI: string;
5
- /** Operating System Command (ESC ]). */
6
- export declare const OSC: string;
7
- /** Bell character (\u0007). Often used to terminate OSC sequences. */
8
- export declare const BEL: string;
9
- /** Separator used in some ANSI sequences, typically a semicolon. */
10
- export declare const SEP: string;
11
- /** Device Control String (ESC P). */
12
- export declare const DCS: string;
13
- /** String Terminator (ESC \\). Used to terminate DCS, SOS, PM, APC sequences. */
14
- export declare const ST: string;
15
- /** Application Program Command (ESC _). */
16
- export declare const APC: string;
17
- /** Start of String (ESC X). */
18
- export declare const SOS: string;
19
- /** Privacy Message (ESC ^). */
20
- export declare const PM: string;
@@ -1,20 +0,0 @@
1
- /** Escape character (\u001B). */
2
- export declare const ESC: string;
3
- /** Control Sequence Introducer (ESC [). */
4
- export declare const CSI: string;
5
- /** Operating System Command (ESC ]). */
6
- export declare const OSC: string;
7
- /** Bell character (\u0007). Often used to terminate OSC sequences. */
8
- export declare const BEL: string;
9
- /** Separator used in some ANSI sequences, typically a semicolon. */
10
- export declare const SEP: string;
11
- /** Device Control String (ESC P). */
12
- export declare const DCS: string;
13
- /** String Terminator (ESC \\). Used to terminate DCS, SOS, PM, APC sequences. */
14
- export declare const ST: string;
15
- /** Application Program Command (ESC _). */
16
- export declare const APC: string;
17
- /** Start of String (ESC X). */
18
- export declare const SOS: string;
19
- /** Privacy Message (ESC ^). */
20
- export declare const PM: string;
package/dist/cursor.cjs DELETED
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
-
5
- require('./packem_shared/constants-BK26O-46.cjs');
6
- const cursor = require('./packem_shared/cursor-CQKLCu7U.cjs');
7
- const restoreCursor = require('./packem_shared/restoreCursor-DC_ZKZwT.cjs');
8
-
9
-
10
-
11
- exports.CURSOR_BACKWARD_1 = cursor.CURSOR_BACKWARD_1;
12
- exports.CURSOR_DOWN_1 = cursor.CURSOR_DOWN_1;
13
- exports.CURSOR_FORWARD_1 = cursor.CURSOR_FORWARD_1;
14
- exports.CURSOR_UP_1 = cursor.CURSOR_UP_1;
15
- exports.CursorStyle = cursor.CursorStyle;
16
- exports.REQUEST_CURSOR_POSITION = cursor.REQUEST_CURSOR_POSITION;
17
- exports.REQUEST_EXTENDED_CURSOR_POSITION = cursor.REQUEST_EXTENDED_CURSOR_POSITION;
18
- exports.RESTORE_CURSOR_DEC = cursor.RESTORE_CURSOR_DEC;
19
- exports.SAVE_CURSOR_DEC = cursor.SAVE_CURSOR_DEC;
20
- exports.cursorBackward = cursor.cursorBackward;
21
- exports.cursorBackwardTab = cursor.cursorBackwardTab;
22
- exports.cursorDown = cursor.cursorDown;
23
- exports.cursorForward = cursor.cursorForward;
24
- exports.cursorHide = cursor.cursorHide;
25
- exports.cursorHorizontalAbsolute = cursor.cursorHorizontalAbsolute;
26
- exports.cursorHorizontalForwardTab = cursor.cursorHorizontalForwardTab;
27
- exports.cursorLeft = cursor.cursorLeft;
28
- exports.cursorMove = cursor.cursorMove;
29
- exports.cursorNextLine = cursor.cursorNextLine;
30
- exports.cursorPosition = cursor.cursorPosition;
31
- exports.cursorPreviousLine = cursor.cursorPreviousLine;
32
- exports.cursorRestore = cursor.cursorRestore;
33
- exports.cursorSave = cursor.cursorSave;
34
- exports.cursorShow = cursor.cursorShow;
35
- exports.cursorTo = cursor.cursorTo;
36
- exports.cursorToColumn1 = cursor.cursorToColumn1;
37
- exports.cursorUp = cursor.cursorUp;
38
- exports.cursorVerticalAbsolute = cursor.cursorVerticalAbsolute;
39
- exports.eraseCharacter = cursor.eraseCharacter;
40
- exports.setCursorStyle = cursor.setCursorStyle;
41
- exports.restoreCursor = restoreCursor;