Dont hardcode as many color codes in xterm.ts
This commit is contained in:
+2
-1
@@ -1890,9 +1890,10 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
}
|
}
|
||||||
if (this.options.bellStyles.indexOf(BellStyles.Visual) > -1) {
|
if (this.options.bellStyles.indexOf(BellStyles.Visual) > -1) {
|
||||||
var cursor = this.element.querySelector('.terminal-cursor') as HTMLElement;
|
var cursor = this.element.querySelector('.terminal-cursor') as HTMLElement;
|
||||||
|
var originalBackground = cursor.style.backgroundColor;
|
||||||
cursor.style.backgroundColor = "#fff";
|
cursor.style.backgroundColor = "#fff";
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
cursor.style.backgroundColor = "#e6e6e6";
|
cursor.style.backgroundColor = originalBackground;
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -94,12 +94,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.terminal:not(.focus) .terminal-cursor {
|
.terminal:not(.focus) .terminal-cursor {
|
||||||
outline: 1px solid #e6e6e6;
|
outline: 1px solid #eeeeec;
|
||||||
outline-offset: -1px;
|
outline-offset: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal.xterm-cursor-style-block.focus:not(.xterm-cursor-blink-on) .terminal-cursor {
|
.terminal.xterm-cursor-style-block.focus:not(.xterm-cursor-blink-on) .terminal-cursor {
|
||||||
background-color: #e6e6e6;
|
background-color: #eeeeec;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
.terminal.focus.xterm-cursor-style-underline:not(.xterm-cursor-blink-on) .terminal-cursor::before {
|
.terminal.focus.xterm-cursor-style-underline:not(.xterm-cursor-blink-on) .terminal-cursor::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: ##e6e6e6;
|
background-color: #eeeeec;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal.focus.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before {
|
.terminal.focus.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before {
|
||||||
|
|||||||
Reference in New Issue
Block a user