@xterm/headless 5.6.0-beta.14 → 5.6.0-beta.141

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/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@xterm/headless",
3
3
  "description": "A headless terminal component that runs in Node.js",
4
- "version": "5.6.0-beta.14",
4
+ "version": "5.6.0-beta.141",
5
5
  "main": "lib-headless/xterm-headless.js",
6
+ "module": "lib/xterm.mjs",
6
7
  "types": "typings/xterm-headless.d.ts",
7
8
  "repository": "https://github.com/xtermjs/xterm.js",
8
9
  "license": "MIT",
10
+ "workspaces": [
11
+ "addons/*"
12
+ ],
9
13
  "keywords": [
10
14
  "cli",
11
15
  "command-line",
@@ -20,5 +24,6 @@
20
24
  "vt100",
21
25
  "webgl",
22
26
  "xterm"
23
- ]
27
+ ],
28
+ "commit": "a9d3ca19f407c221447d30ea30d3a4c7953b1a4a"
24
29
  }
@@ -83,6 +83,8 @@ declare module '@xterm/headless' {
83
83
 
84
84
  /**
85
85
  * The modifier key hold to multiply scroll speed.
86
+ * @deprecated This option is no longer available and will always use alt.
87
+ * Setting this will be ignored.
86
88
  */
87
89
  fastScrollModifier?: 'none' | 'alt' | 'ctrl' | 'shift';
88
90
 
@@ -140,6 +142,13 @@ declare module '@xterm/headless' {
140
142
  */
141
143
  minimumContrastRatio?: number;
142
144
 
145
+ /**
146
+ * Whether to reflow the line containing the cursor when the terminal is
147
+ * resized. Defaults to false, because shells usually handle this
148
+ * themselves.
149
+ */
150
+ reflowCursorLine?: boolean;
151
+
143
152
  /**
144
153
  * Whether to rescale glyphs horizontally that are a single cell wide but
145
154
  * have glyphs that would overlap following cell(s). This typically happens
@@ -177,6 +186,13 @@ declare module '@xterm/headless' {
177
186
  */
178
187
  scrollback?: number;
179
188
 
189
+ /**
190
+ * If enabled the Erase in Display All (ED2) escape sequence will push
191
+ * erased text to scrollback, instead of clearing only the viewport portion.
192
+ * This emulates PuTTY's default clear screen behavior.
193
+ */
194
+ scrollOnEraseInDisplay?: boolean;
195
+
180
196
  /**
181
197
  * The scrolling speed multiplier used for adjusting normal scrolling speed.
182
198
  */
@@ -817,21 +833,31 @@ declare module '@xterm/headless' {
817
833
 
818
834
  /**
819
835
  * Write data to the terminal.
836
+ *
837
+ * Note that the change will not be reflected in the {@link buffer}
838
+ * immediately as the data is processed asynchronously. Provide a
839
+ * {@link callback} to know when the data was processed.
820
840
  * @param data The data to write to the terminal. This can either be raw
821
841
  * bytes given as Uint8Array from the pty or a string. Raw bytes will always
822
842
  * be treated as UTF-8 encoded, string data as UTF-16.
823
843
  * @param callback Optional callback that fires when the data was processed
824
- * by the parser.
844
+ * by the parser. This callback must be provided and awaited in order for
845
+ * {@link buffer} to reflect the change in the write.
825
846
  */
826
847
  write(data: string | Uint8Array, callback?: () => void): void;
827
848
 
828
849
  /**
829
850
  * Writes data to the terminal, followed by a break line character (\n).
851
+ *
852
+ * Note that the change will not be reflected in the {@link buffer}
853
+ * immediately as the data is processed asynchronously. Provide a
854
+ * {@link callback} to know when the data was processed.
830
855
  * @param data The data to write to the terminal. This can either be raw
831
856
  * bytes given as Uint8Array from the pty or a string. Raw bytes will always
832
857
  * be treated as UTF-8 encoded, string data as UTF-16.
833
858
  * @param callback Optional callback that fires when the data was processed
834
- * by the parser.
859
+ * by the parser. This callback must be provided and awaited in order for
860
+ * {@link buffer} to reflect the change in the write.
835
861
  */
836
862
  writeln(data: string | Uint8Array, callback?: () => void): void;
837
863
 
@@ -1344,6 +1370,13 @@ declare module '@xterm/headless' {
1344
1370
  * Send FocusIn/FocusOut events: `CSI ? 1 0 0 4 h`
1345
1371
  */
1346
1372
  readonly sendFocusMode: boolean;
1373
+ /**
1374
+ * Synchronized Output Mode: `CSI ? 2 0 2 6 h`
1375
+ *
1376
+ * When enabled, output is buffered and only rendered when the mode is
1377
+ * disabled, allowing for atomic screen updates without tearing.
1378
+ */
1379
+ readonly synchronizedOutputMode: boolean;
1347
1380
  /**
1348
1381
  * Auto-Wrap Mode (DECAWM): `CSI ? 7 h`
1349
1382
  */