Bold and underline SGR attributes now utilize CSS.

This commit is contained in:
Jay Weisskopf 2012-01-01 03:29:36 -06:00 committed by Marc Singer
parent 1cef2b0ef2
commit 65449410e7
3 changed files with 9 additions and 6 deletions

View file

@ -3276,9 +3276,10 @@ VT100.prototype.updateStyle = function() {
fg = 8; // Dark grey
} else if (this.attr & 0x0800 /* ATTR_BRIGHT */) {
fg |= 8;
this.style = 'font-weight: bold;';
}
if (this.attr & 0x1000 /* ATTR_BLINK */) {
bg ^= 8;
this.style = 'text-decoration: blink;';
}
this.color = 'ansi' + fg + ' bgAnsi' + bg;
};

View file

@ -3276,9 +3276,10 @@ VT100.prototype.updateStyle = function() {
fg = 8; // Dark grey
} else if (this.attr & 0x0800 /* ATTR_BRIGHT */) {
fg |= 8;
this.style = 'font-weight: bold;';
}
if (this.attr & 0x1000 /* ATTR_BLINK */) {
bg ^= 8;
this.style = 'text-decoration: blink;';
}
this.color = 'ansi' + fg + ' bgAnsi' + bg;
};

View file

@ -3276,9 +3276,10 @@ VT100.prototype.updateStyle = function() {
fg = 8; // Dark grey
} else if (this.attr & ATTR_BRIGHT) {
fg |= 8;
this.style = 'font-weight: bold;';
}
if (this.attr & ATTR_BLINK) {
bg ^= 8;
this.style = 'text-decoration: blink;';
}
this.color = 'ansi' + fg + ' bgAnsi' + bg;
};