fix color inversion for css.
This commit is contained in:
+4
-8
@@ -655,14 +655,10 @@ Terminal.insertStyle = function(document, bg, fg) {
|
|||||||
// var out = '';
|
// var out = '';
|
||||||
// each(Terminal.colors, function(color, i) {
|
// each(Terminal.colors, function(color, i) {
|
||||||
// if (i === 256) {
|
// if (i === 256) {
|
||||||
// i = 'default';
|
// out += '\n.term-bg-color-default { background-color: ' + color + '; }';
|
||||||
// out += '\n.term-bg-color-' + i + ' { background-color: ' + color + '; }';
|
|
||||||
// return;
|
|
||||||
// }
|
// }
|
||||||
// if (i === 257) {
|
// if (i === 257) {
|
||||||
// i = 'default';
|
// out += '\n.term-fg-color-default { color: ' + color + '; }';
|
||||||
// out += '\n.term-fg-color-' + i + ' { color: ' + color + '; }';
|
|
||||||
// return;
|
|
||||||
// }
|
// }
|
||||||
// out += '\n.term-bg-color-' + i + ' { background-color: ' + color + '; }';
|
// out += '\n.term-bg-color-' + i + ' { background-color: ' + color + '; }';
|
||||||
// out += '\n.term-fg-color-' + i + ' { color: ' + color + '; }';
|
// out += '\n.term-fg-color-' + i + ' { color: ' + color + '; }';
|
||||||
@@ -1264,9 +1260,9 @@ Terminal.prototype.refresh = function(start, end) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// out += '" class="'
|
// out += '" class="'
|
||||||
// + 'term-bg-color-' + (bg === 256 ? 'default' : bg)
|
// + 'term-bg-color-' + bg
|
||||||
// + ' '
|
// + ' '
|
||||||
// + 'term-fg-color-' + (fg === 257 ? 'default' : fg)
|
// + 'term-fg-color-' + fg
|
||||||
// + '">';
|
// + '">';
|
||||||
|
|
||||||
if (bg !== 256) {
|
if (bg !== 256) {
|
||||||
|
|||||||
Reference in New Issue
Block a user