mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Remove Terminal.options.colors
It wasn't being used
This commit is contained in:
@@ -117,7 +117,6 @@ export interface ITerminalOptions {
|
||||
bellSound?: string;
|
||||
bellStyle?: string;
|
||||
cancelEvents?: boolean;
|
||||
colors?: string[];
|
||||
cols?: number;
|
||||
convertEol?: boolean;
|
||||
cursorBlink?: boolean;
|
||||
|
||||
@@ -136,7 +136,6 @@ const vcolors: number[][] = (function(): number[][] {
|
||||
})();
|
||||
|
||||
const DEFAULT_OPTIONS: ITerminalOptions = {
|
||||
colors: defaultColors,
|
||||
convertEol: false,
|
||||
termName: 'xterm',
|
||||
geometry: [80, 24],
|
||||
@@ -300,19 +299,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
||||
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.document = options.document || document;
|
||||
// TODO: WHy not document.body?
|
||||
|
||||
Reference in New Issue
Block a user