@xterm/headless 5.6.0-beta.1 → 5.6.0-beta.100

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,8 +1,9 @@
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.1",
4
+ "version": "5.6.0-beta.100",
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",
@@ -20,5 +21,6 @@
20
21
  "vt100",
21
22
  "webgl",
22
23
  "xterm"
23
- ]
24
+ ],
25
+ "commit": "1771825e81d2457c76cb289bc3363e8bca986f0f"
24
26
  }
@@ -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
  */
@@ -714,6 +730,17 @@ declare module '@xterm/headless' {
714
730
  */
715
731
  onLineFeed: IEvent<void>;
716
732
 
733
+ /**
734
+ * Adds an event listener for when data has been parsed by the terminal,
735
+ * after {@link write} is called. This event is useful to listen for any
736
+ * changes in the buffer.
737
+ *
738
+ * This fires at most once per frame, after data parsing completes. Note
739
+ * that this can fire when there are still writes pending if there is a lot
740
+ * of data.
741
+ */
742
+ onWriteParsed: IEvent<void>;
743
+
717
744
  /**
718
745
  * Adds an event listener for when the terminal is resized. The event value
719
746
  * contains the new size.