Dont hardcode as many color codes in xterm.ts

This commit is contained in:
npezza93
2017-08-16 20:39:27 -04:00
parent 8a1f365a7e
commit 44ed0b9ceb
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1890,9 +1890,10 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
}
if (this.options.bellStyles.indexOf(BellStyles.Visual) > -1) {
var cursor = this.element.querySelector('.terminal-cursor') as HTMLElement;
var originalBackground = cursor.style.backgroundColor;
cursor.style.backgroundColor = "#fff";
setTimeout(function() {
cursor.style.backgroundColor = "#e6e6e6";
cursor.style.backgroundColor = originalBackground;
}, 200);
}
}