Bold and underline SGR attributes now utilize CSS.
This commit is contained in:
parent
1cef2b0ef2
commit
65449410e7
3 changed files with 9 additions and 6 deletions
|
@ -3276,9 +3276,10 @@ VT100.prototype.updateStyle = function() {
|
||||||
fg = 8; // Dark grey
|
fg = 8; // Dark grey
|
||||||
} else if (this.attr & 0x0800 /* ATTR_BRIGHT */) {
|
} else if (this.attr & 0x0800 /* ATTR_BRIGHT */) {
|
||||||
fg |= 8;
|
fg |= 8;
|
||||||
|
this.style = 'font-weight: bold;';
|
||||||
}
|
}
|
||||||
if (this.attr & 0x1000 /* ATTR_BLINK */) {
|
if (this.attr & 0x1000 /* ATTR_BLINK */) {
|
||||||
bg ^= 8;
|
this.style = 'text-decoration: blink;';
|
||||||
}
|
}
|
||||||
this.color = 'ansi' + fg + ' bgAnsi' + bg;
|
this.color = 'ansi' + fg + ' bgAnsi' + bg;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3276,9 +3276,10 @@ VT100.prototype.updateStyle = function() {
|
||||||
fg = 8; // Dark grey
|
fg = 8; // Dark grey
|
||||||
} else if (this.attr & 0x0800 /* ATTR_BRIGHT */) {
|
} else if (this.attr & 0x0800 /* ATTR_BRIGHT */) {
|
||||||
fg |= 8;
|
fg |= 8;
|
||||||
|
this.style = 'font-weight: bold;';
|
||||||
}
|
}
|
||||||
if (this.attr & 0x1000 /* ATTR_BLINK */) {
|
if (this.attr & 0x1000 /* ATTR_BLINK */) {
|
||||||
bg ^= 8;
|
this.style = 'text-decoration: blink;';
|
||||||
}
|
}
|
||||||
this.color = 'ansi' + fg + ' bgAnsi' + bg;
|
this.color = 'ansi' + fg + ' bgAnsi' + bg;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3276,9 +3276,10 @@ VT100.prototype.updateStyle = function() {
|
||||||
fg = 8; // Dark grey
|
fg = 8; // Dark grey
|
||||||
} else if (this.attr & ATTR_BRIGHT) {
|
} else if (this.attr & ATTR_BRIGHT) {
|
||||||
fg |= 8;
|
fg |= 8;
|
||||||
|
this.style = 'font-weight: bold;';
|
||||||
}
|
}
|
||||||
if (this.attr & ATTR_BLINK) {
|
if (this.attr & ATTR_BLINK) {
|
||||||
bg ^= 8;
|
this.style = 'text-decoration: blink;';
|
||||||
}
|
}
|
||||||
this.color = 'ansi' + fg + ' bgAnsi' + bg;
|
this.color = 'ansi' + fg + ' bgAnsi' + bg;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue