File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export class Terminal extends Disposable implements ITerminalApi {
8383 public get onDimensionsChange ( ) : IEvent < IRenderDimensions > { return this . _core . onDimensionsChange ; }
8484
8585 public get element ( ) : HTMLElement | undefined { return this . _core . element ; }
86+ public get screenElement ( ) : HTMLElement | undefined { return this . _core . screenElement ; }
8687 public get parser ( ) : IParser {
8788 return this . _parser ??= new ParserApi ( this . _core ) ;
8889 }
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ type TerminalProxyAsyncMethodOverrides = 'hasSelection' | 'getSelection' | 'getS
115115type TerminalProxyCustomOverrides = 'buffer' | 'dimensions' | (
116116 // The below are not implemented yet
117117 'element' |
118+ 'screenElement' |
118119 'textarea' |
119120 'markers' |
120121 'unicode' |
Original file line number Diff line number Diff line change @@ -911,6 +911,12 @@ declare module '@xterm/xterm' {
911911 */
912912 readonly element : HTMLElement | undefined ;
913913
914+ /**
915+ * The screen element containing the terminal's canvas rendering layers and
916+ * decorations, excluding the viewport and the scrollbar.
917+ */
918+ readonly screenElement : HTMLElement | undefined ;
919+
914920 /**
915921 * The textarea that accepts input for the terminal.
916922 */
You can’t perform that action at this time.
0 commit comments