mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Add api to expose screenElement
This commit is contained in:
@@ -83,6 +83,7 @@ export class Terminal extends Disposable implements ITerminalApi {
|
||||
public get onDimensionsChange(): IEvent<IRenderDimensions> { return this._core.onDimensionsChange; }
|
||||
|
||||
public get element(): HTMLElement | undefined { return this._core.element; }
|
||||
public get screenElement(): HTMLElement | undefined { return this._core.screenElement; }
|
||||
public get parser(): IParser {
|
||||
return this._parser ??= new ParserApi(this._core);
|
||||
}
|
||||
|
||||
@@ -115,6 +115,7 @@ type TerminalProxyAsyncMethodOverrides = 'hasSelection' | 'getSelection' | 'getS
|
||||
type TerminalProxyCustomOverrides = 'buffer' | 'dimensions' | (
|
||||
// The below are not implemented yet
|
||||
'element' |
|
||||
'screenElement' |
|
||||
'textarea' |
|
||||
'markers' |
|
||||
'unicode' |
|
||||
|
||||
Vendored
+6
@@ -911,6 +911,12 @@ declare module '@xterm/xterm' {
|
||||
*/
|
||||
readonly element: HTMLElement | undefined;
|
||||
|
||||
/**
|
||||
* The screen element containing the terminal's canvas rendering layers and decorations,
|
||||
* excluding the viewport and the scrollbar.
|
||||
*/
|
||||
readonly screenElement: HTMLElement | undefined;
|
||||
|
||||
/**
|
||||
* The textarea that accepts input for the terminal.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user