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

@ -3263,7 +3263,7 @@ VT100.prototype.respondSecondaryDA = function() {
VT100.prototype.updateStyle = function() {
this.style = '';
if (this.attr & 0x0200 /* ATTR_UNDERLINE */) {
this.style = 'text-decoration:underline;';
this.style = 'text-decoration: underline;';
}
var bg = (this.attr >> 4) & 0xF;
var fg = this.attr & 0xF;
@ -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

@ -3263,7 +3263,7 @@ VT100.prototype.respondSecondaryDA = function() {
VT100.prototype.updateStyle = function() {
this.style = '';
if (this.attr & 0x0200 /* ATTR_UNDERLINE */) {
this.style = 'text-decoration:underline;';
this.style = 'text-decoration: underline;';
}
var bg = (this.attr >> 4) & 0xF;
var fg = this.attr & 0xF;
@ -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

@ -3263,7 +3263,7 @@ VT100.prototype.respondSecondaryDA = function() {
VT100.prototype.updateStyle = function() {
this.style = '';
if (this.attr & ATTR_UNDERLINE) {
this.style = 'text-decoration:underline;';
this.style = 'text-decoration: underline;';
}
var bg = (this.attr >> 4) & 0xF;
var fg = this.attr & 0xF;
@ -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;
};