Do a pass of headless/Terminal members
This commit is contained in:
@@ -113,8 +113,8 @@ export class Terminal extends CoreTerminal implements ITerminal {
|
|||||||
public get onSelectionChange(): IEvent<void> { return this._onSelectionChange.event; }
|
public get onSelectionChange(): IEvent<void> { return this._onSelectionChange.event; }
|
||||||
private _onTitleChange = new EventEmitter<string>();
|
private _onTitleChange = new EventEmitter<string>();
|
||||||
public get onTitleChange(): IEvent<string> { return this._onTitleChange.event; }
|
public get onTitleChange(): IEvent<string> { return this._onTitleChange.event; }
|
||||||
private _onBell = new EventEmitter<void>();
|
private _onBell = new EventEmitter<void>();
|
||||||
public get onBell (): IEvent<void> { return this._onBell.event; }
|
public get onBell(): IEvent<void> { return this._onBell.event; }
|
||||||
|
|
||||||
private _onFocus = new EventEmitter<void>();
|
private _onFocus = new EventEmitter<void>();
|
||||||
public get onFocus(): IEvent<void> { return this._onFocus.event; }
|
public get onFocus(): IEvent<void> { return this._onFocus.event; }
|
||||||
|
|||||||
@@ -32,9 +32,8 @@ export class Terminal extends CoreTerminal {
|
|||||||
// TODO: We should remove options once components adopt optionsService
|
// TODO: We should remove options once components adopt optionsService
|
||||||
public get options(): IInitializedTerminalOptions { return this.optionsService.options; }
|
public get options(): IInitializedTerminalOptions { return this.optionsService.options; }
|
||||||
|
|
||||||
|
private _onBell = new EventEmitter<void>();
|
||||||
private _onBell = new EventEmitter<void>();
|
public get onBell(): IEvent<void> { return this._onBell.event; }
|
||||||
public get onBell (): IEvent<void> { return this._onBell.event; }
|
|
||||||
private _onCursorMove = new EventEmitter<void>();
|
private _onCursorMove = new EventEmitter<void>();
|
||||||
public get onCursorMove(): IEvent<void> { return this._onCursorMove.event; }
|
public get onCursorMove(): IEvent<void> { return this._onCursorMove.event; }
|
||||||
private _onTitleChange = new EventEmitter<string>();
|
private _onTitleChange = new EventEmitter<string>();
|
||||||
@@ -88,6 +87,17 @@ export class Terminal extends CoreTerminal {
|
|||||||
return this.buffers.active;
|
return this.buffers.active;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected _updateOptions(key: string): void {
|
||||||
|
super._updateOptions(key);
|
||||||
|
|
||||||
|
// TODO: These listeners should be owned by individual components
|
||||||
|
switch (key) {
|
||||||
|
case 'tabStopWidth': this.buffers.setupTabStops(); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Support paste here?
|
||||||
|
|
||||||
public get markers(): IMarker[] {
|
public get markers(): IMarker[] {
|
||||||
return this.buffer.markers;
|
return this.buffer.markers;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user