Remove Terminal.options.colors
It wasn't being used
This commit is contained in:
@@ -117,7 +117,6 @@ export interface ITerminalOptions {
|
|||||||
bellSound?: string;
|
bellSound?: string;
|
||||||
bellStyle?: string;
|
bellStyle?: string;
|
||||||
cancelEvents?: boolean;
|
cancelEvents?: boolean;
|
||||||
colors?: string[];
|
|
||||||
cols?: number;
|
cols?: number;
|
||||||
convertEol?: boolean;
|
convertEol?: boolean;
|
||||||
cursorBlink?: boolean;
|
cursorBlink?: boolean;
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const vcolors: number[][] = (function(): number[][] {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
const DEFAULT_OPTIONS: ITerminalOptions = {
|
const DEFAULT_OPTIONS: ITerminalOptions = {
|
||||||
colors: defaultColors,
|
|
||||||
convertEol: false,
|
convertEol: false,
|
||||||
termName: 'xterm',
|
termName: 'xterm',
|
||||||
geometry: [80, 24],
|
geometry: [80, 24],
|
||||||
@@ -300,19 +299,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
this[key] = this.options[key];
|
this[key] = this.options[key];
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.options.colors.length === 8) {
|
|
||||||
this.options.colors = this.options.colors.concat(_colors.slice(8));
|
|
||||||
} else if (this.options.colors.length === 16) {
|
|
||||||
this.options.colors = this.options.colors.concat(_colors.slice(16));
|
|
||||||
} else if (this.options.colors.length === 10) {
|
|
||||||
this.options.colors = this.options.colors.slice(0, -2).concat(
|
|
||||||
_colors.slice(8, -2), this.options.colors.slice(-2));
|
|
||||||
} else if (this.options.colors.length === 18) {
|
|
||||||
this.options.colors = this.options.colors.concat(
|
|
||||||
_colors.slice(16, -2), this.options.colors.slice(-2));
|
|
||||||
}
|
|
||||||
this.colors = this.options.colors;
|
|
||||||
|
|
||||||
// this.context = options.context || window;
|
// this.context = options.context || window;
|
||||||
// this.document = options.document || document;
|
// this.document = options.document || document;
|
||||||
// TODO: WHy not document.body?
|
// TODO: WHy not document.body?
|
||||||
|
|||||||
Reference in New Issue
Block a user