Files
xterm.js/demo/client/components/window/baseWindow.ts
T
Cursor AgentandDaniel Imms 1040b799ce Disallow single-line brace-style blocks
Set allowSingleLine to false and expand multi-line braces
across the codebase via eslint --fix.

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
2026-05-26 17:07:35 +00:00

30 lines
710 B
TypeScript

/**
* Copyright (c) 2025 The xterm.js authors. All rights reserved.
* @license MIT
*/
import type { AddonCollection } from '../../types';
import type { IControlWindow } from '../controlBar';
import type { Terminal } from '@xterm/xterm';
export abstract class BaseWindow implements IControlWindow {
protected get _terminal(): Terminal {
return this._terminalPrivate;
}
constructor(
private _terminalPrivate: Terminal,
protected readonly _addons: AddonCollection,
) {
}
public setTerminal(terminal: Terminal): void {
this._terminalPrivate = terminal;
}
public abstract id: string;
public abstract label: string;
public abstract build(container: HTMLElement): void;
}