@xterm/headless 5.6.0-beta.98 → 6.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/package.json CHANGED
@@ -1,12 +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.98",
4
+ "version": "6.0.0",
5
5
  "main": "lib-headless/xterm-headless.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "types": "typings/xterm-headless.d.ts",
8
8
  "repository": "https://github.com/xtermjs/xterm.js",
9
9
  "license": "MIT",
10
+ "workspaces": [
11
+ "addons/*"
12
+ ],
10
13
  "keywords": [
11
14
  "cli",
12
15
  "command-line",
@@ -22,5 +25,5 @@
22
25
  "webgl",
23
26
  "xterm"
24
27
  ],
25
- "commit": "2042bb85023714e55c0c2e986b5000e33b17c414"
28
+ "commit": "f447274f430fd22513f6adbf9862d19524471c04"
26
29
  }
@@ -186,6 +186,13 @@ declare module '@xterm/headless' {
186
186
  */
187
187
  scrollback?: number;
188
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
+
189
196
  /**
190
197
  * The scrolling speed multiplier used for adjusting normal scrolling speed.
191
198
  */
@@ -826,21 +833,31 @@ declare module '@xterm/headless' {
826
833
 
827
834
  /**
828
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.
829
840
  * @param data The data to write to the terminal. This can either be raw
830
841
  * bytes given as Uint8Array from the pty or a string. Raw bytes will always
831
842
  * be treated as UTF-8 encoded, string data as UTF-16.
832
843
  * @param callback Optional callback that fires when the data was processed
833
- * 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.
834
846
  */
835
847
  write(data: string | Uint8Array, callback?: () => void): void;
836
848
 
837
849
  /**
838
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.
839
855
  * @param data The data to write to the terminal. This can either be raw
840
856
  * bytes given as Uint8Array from the pty or a string. Raw bytes will always
841
857
  * be treated as UTF-8 encoded, string data as UTF-16.
842
858
  * @param callback Optional callback that fires when the data was processed
843
- * 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.
844
861
  */
845
862
  writeln(data: string | Uint8Array, callback?: () => void): void;
846
863
 
@@ -1353,6 +1370,13 @@ declare module '@xterm/headless' {
1353
1370
  * Send FocusIn/FocusOut events: `CSI ? 1 0 0 4 h`
1354
1371
  */
1355
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;
1356
1380
  /**
1357
1381
  * Auto-Wrap Mode (DECAWM): `CSI ? 7 h`
1358
1382
  */