Make options available in terminal

This commit is contained in:
Simon Lamon
2021-09-01 07:59:45 +00:00
parent 52d00a434e
commit 72a557cc1a
8 changed files with 65 additions and 79 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
* @alias module:xterm/src/xterm
*/
constructor(
options: ITerminalOptions = {}
options: Partial<ITerminalOptions> = {}
) {
super(options);
+3
View File
@@ -89,6 +89,9 @@ export class Terminal implements ITerminalApi {
wraparoundMode: m.wraparound
};
}
public get options(): ITerminalOptions {
return this._core.options;
}
public blur(): void {
this._core.blur();
}