Merge pull request #4683 from Tyriar/tyriar/minor_cleanup
Remove unneeded comments, headless options
This commit is contained in:
@@ -74,8 +74,6 @@ export class Terminal extends CoreTerminal implements ITerminal {
|
|||||||
|
|
||||||
private _overviewRulerRenderer: OverviewRulerRenderer | undefined;
|
private _overviewRulerRenderer: OverviewRulerRenderer | undefined;
|
||||||
|
|
||||||
// private _visualBellTimer: number;
|
|
||||||
|
|
||||||
public browser: IBrowser = Browser as any;
|
public browser: IBrowser = Browser as any;
|
||||||
|
|
||||||
private _customKeyEventHandler: CustomKeyEventHandler | undefined;
|
private _customKeyEventHandler: CustomKeyEventHandler | undefined;
|
||||||
@@ -146,18 +144,6 @@ export class Terminal extends CoreTerminal implements ITerminal {
|
|||||||
private _onWillOpen = this.register(new EventEmitter<HTMLElement>());
|
private _onWillOpen = this.register(new EventEmitter<HTMLElement>());
|
||||||
public get onWillOpen(): IEvent<HTMLElement> { return this._onWillOpen.event; }
|
public get onWillOpen(): IEvent<HTMLElement> { return this._onWillOpen.event; }
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new `Terminal` object.
|
|
||||||
*
|
|
||||||
* @param options An object containing a set of options, the available options are:
|
|
||||||
* - `cursorBlink` (boolean): Whether the terminal cursor blinks
|
|
||||||
* - `cols` (number): The number of columns of the terminal (horizontal size)
|
|
||||||
* - `rows` (number): The number of rows of the terminal (vertical size)
|
|
||||||
*
|
|
||||||
* @public
|
|
||||||
* @class Xterm Xterm
|
|
||||||
* @alias module:xterm/src/xterm
|
|
||||||
*/
|
|
||||||
constructor(
|
constructor(
|
||||||
options: Partial<ITerminalOptions> = {}
|
options: Partial<ITerminalOptions> = {}
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -25,13 +25,9 @@ import { DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
|
|||||||
import { IBuffer } from 'common/buffer/Types';
|
import { IBuffer } from 'common/buffer/Types';
|
||||||
import { CoreTerminal } from 'common/CoreTerminal';
|
import { CoreTerminal } from 'common/CoreTerminal';
|
||||||
import { EventEmitter, forwardEvent } from 'common/EventEmitter';
|
import { EventEmitter, forwardEvent } from 'common/EventEmitter';
|
||||||
import { ITerminalOptions as IInitializedTerminalOptions } from 'common/services/Services';
|
|
||||||
import { IMarker, ITerminalOptions, ScrollSource } from 'common/Types';
|
import { IMarker, ITerminalOptions, ScrollSource } from 'common/Types';
|
||||||
|
|
||||||
export class Terminal extends CoreTerminal {
|
export class Terminal extends CoreTerminal {
|
||||||
// TODO: We should remove options once components adopt optionsService
|
|
||||||
public get options(): Required<IInitializedTerminalOptions> { return this.optionsService.options; }
|
|
||||||
|
|
||||||
private readonly _onBell = this.register(new EventEmitter<void>());
|
private readonly _onBell = this.register(new EventEmitter<void>());
|
||||||
public readonly onBell = this._onBell.event;
|
public readonly onBell = this._onBell.event;
|
||||||
private readonly _onCursorMove = this.register(new EventEmitter<void>());
|
private readonly _onCursorMove = this.register(new EventEmitter<void>());
|
||||||
@@ -43,18 +39,6 @@ export class Terminal extends CoreTerminal {
|
|||||||
private readonly _onA11yTabEmitter = this.register(new EventEmitter<number>());
|
private readonly _onA11yTabEmitter = this.register(new EventEmitter<number>());
|
||||||
public readonly onA11yTab = this._onA11yTabEmitter.event;
|
public readonly onA11yTab = this._onA11yTabEmitter.event;
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new `Terminal` object.
|
|
||||||
*
|
|
||||||
* @param options An object containing a set of options, the available options are:
|
|
||||||
* - `cursorBlink` (boolean): Whether the terminal cursor blinks
|
|
||||||
* - `cols` (number): The number of columns of the terminal (horizontal size)
|
|
||||||
* - `rows` (number): The number of rows of the terminal (vertical size)
|
|
||||||
*
|
|
||||||
* @public
|
|
||||||
* @class Xterm Xterm
|
|
||||||
* @alias module:xterm/src/xterm
|
|
||||||
*/
|
|
||||||
constructor(
|
constructor(
|
||||||
options: ITerminalOptions = {}
|
options: ITerminalOptions = {}
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user