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;
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;
};
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;
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;
};
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;
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;
};