]> andersk Git - test.git/blobdiff - shellinabox/vt100.jspp
Bold and underline SGR attributes now utilize CSS.
[test.git] / shellinabox / vt100.jspp
index 4529b27f05f85bc2434905b2d581d8ed4622df89..e781f5e340023930a6483262f6b52e371170e456 100755 (executable)
@@ -3282,7 +3282,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;
@@ -3295,9 +3295,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;
 };
This page took 0.026879 seconds and 4 git commands to generate.