@xterm/headless 6.1.0-beta.9 → 6.1.0-beta.90

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/headless",
3
3
  "description": "A headless terminal component that runs in Node.js",
4
- "version": "6.1.0-beta.9",
4
+ "version": "6.1.0-beta.90",
5
5
  "main": "lib-headless/xterm-headless.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "types": "typings/xterm-headless.d.ts",
@@ -25,5 +25,5 @@
25
25
  "webgl",
26
26
  "xterm"
27
27
  ],
28
- "commit": "269d8c20aed41b71c743690b1fe70d82dbd420d6"
28
+ "commit": "c97abced76fe3ca2191b86f6c03c1275b6d4e696"
29
29
  }
@@ -49,7 +49,9 @@ declare module '@xterm/headless' {
49
49
  convertEol?: boolean;
50
50
 
51
51
  /**
52
- * Whether the cursor blinks.
52
+ * Whether the cursor blinks. The blinking will stop after 5 minutes of idle
53
+ * time (refreshed by clicking, focusing or the cursor moving). The default
54
+ * is false.
53
55
  */
54
56
  cursorBlink?: boolean;
55
57
 
@@ -63,22 +65,6 @@ declare module '@xterm/headless' {
63
65
  */
64
66
  cursorWidth?: number;
65
67
 
66
- /**
67
- * Whether to draw custom glyphs instead of using the font for the following
68
- * unicode ranges:
69
- *
70
- * - Box Drawing (U+2500-U+257F)
71
- * - Box Elements (U+2580-U+259F)
72
- * - Powerline Symbols (U+E0A0–U+E0BF)
73
- * - Symbols for Legacy Computing (U+1FB00–U+1FBFF)
74
- *
75
- * This will typically result in better rendering with continuous lines,
76
- * even when line height and letter spacing is used. Note that this doesn't
77
- * work with the DOM renderer which renders all characters using the font.
78
- * The default is true.
79
- */
80
- customGlyphs?: boolean;
81
-
82
68
  /**
83
69
  * Whether input should be disabled.
84
70
  */
@@ -146,7 +132,8 @@ declare module '@xterm/headless' {
146
132
  /**
147
133
  * Whether to reflow the line containing the cursor when the terminal is
148
134
  * resized. Defaults to false, because shells usually handle this
149
- * themselves.
135
+ * themselves. Note that this will not move the cursor position, only the
136
+ * line contents.
150
137
  */
151
138
  reflowCursorLine?: boolean;
152
139
 
@@ -597,21 +584,18 @@ declare module '@xterm/headless' {
597
584
  readonly cols: number;
598
585
 
599
586
  /**
600
- * (EXPERIMENTAL) The terminal's current buffer, this might be either the
601
- * normal buffer or the alt buffer depending on what's running in the
602
- * terminal.
587
+ * Access to the terminal's normal and alt buffer.
603
588
  */
604
589
  readonly buffer: IBufferNamespace;
605
590
 
606
591
  /**
607
- * (EXPERIMENTAL) Get all markers registered against the buffer. If the alt
608
- * buffer is active this will always return [].
592
+ * Get all markers registered against the buffer. If the alt buffer is
593
+ * active this will always return [].
609
594
  */
610
595
  readonly markers: ReadonlyArray<IMarker>;
611
596
 
612
597
  /**
613
- * (EXPERIMENTAL) Get the parser interface to register
614
- * custom escape sequence handlers.
598
+ * Get the parser interface to register custom escape sequence handlers.
615
599
  */
616
600
  readonly parser: IParser;
617
601
 
@@ -712,6 +696,17 @@ declare module '@xterm/headless' {
712
696
  */
713
697
  onLineFeed: IEvent<void>;
714
698
 
699
+ /**
700
+ * Adds an event listener for when rows are _requested_ to be rendered. The
701
+ * event value contains the start row and end rows of the rendered area
702
+ * (ranges from `0` to `Terminal.rows - 1`). This differs from the regular
703
+ * xterm.js in that it doesn't actually do any rendering but requests
704
+ * rendering from the outside. This is useful for implementing a custom
705
+ * renderer on top of xterm-headless.
706
+ * @returns an `IDisposable` to stop listening.
707
+ */
708
+ onRender: IEvent<{ start: number, end: number }>;
709
+
715
710
  /**
716
711
  * Adds an event listener for when data has been parsed by the terminal,
717
712
  * after {@link write} is called. This event is useful to listen for any
@@ -1247,7 +1242,7 @@ declare module '@xterm/headless' {
1247
1242
  * @param id Specifies the function identifier under which the callback
1248
1243
  * gets registered, e.g. {intermediates: '%' final: 'G'} for
1249
1244
  * default charset selection.
1250
- * @param callback The function to handle the sequence.
1245
+ * @param handler The function to handle the sequence.
1251
1246
  * Return true if the sequence was handled; false if we should try
1252
1247
  * a previous handler (set by addEscHandler or setEscHandler).
1253
1248
  * The most recently added handler is tried first.
@@ -1352,6 +1347,10 @@ declare module '@xterm/headless' {
1352
1347
  * Send FocusIn/FocusOut events: `CSI ? 1 0 0 4 h`
1353
1348
  */
1354
1349
  readonly sendFocusMode: boolean;
1350
+ /**
1351
+ * Show Cursor (DECTCEM): `CSI ? 2 5 h`
1352
+ */
1353
+ readonly showCursor: boolean;
1355
1354
  /**
1356
1355
  * Synchronized Output Mode: `CSI ? 2 0 2 6 h`
1357
1356
  *