Comparing version 3.13.0-beta2 to 3.13.0-beta3
@@ -173,11 +173,16 @@ "use strict"; | ||
} | ||
else if (cell.isFgRGB()) { | ||
this._ctx.fillStyle = "rgb(" + BufferLine_1.AttributeData.toColorRGB(cell.getFgColor()).join(',') + ")"; | ||
} | ||
else if (cell.isFgPalette()) { | ||
var fg = cell.getFgColor(); | ||
if (terminal.options.drawBoldTextInBrightColors && cell.isBold() && fg < 8) { | ||
fg += 8; | ||
else { | ||
if (cell.isFgDefault()) { | ||
this._ctx.fillStyle = this._colors.foreground.css; | ||
} | ||
this._ctx.fillStyle = this._colors.ansi[fg].css; | ||
else if (cell.isFgRGB()) { | ||
this._ctx.fillStyle = "rgb(" + BufferLine_1.AttributeData.toColorRGB(cell.getFgColor()).join(',') + ")"; | ||
} | ||
else { | ||
var fg = cell.getFgColor(); | ||
if (terminal.options.drawBoldTextInBrightColors && cell.isBold() && fg < 8) { | ||
fg += 8; | ||
} | ||
this._ctx.fillStyle = this._colors.ansi[fg].css; | ||
} | ||
} | ||
@@ -184,0 +189,0 @@ this._clipRow(terminal, y); |
@@ -152,8 +152,17 @@ "use strict"; | ||
} | ||
else if (cell.isFgRGB()) { | ||
_this._ctx.fillStyle = "rgb(" + BufferLine_1.AttributeData.toColorRGB(cell.getFgColor()).join(',') + ")"; | ||
else { | ||
if (cell.isFgDefault()) { | ||
_this._ctx.fillStyle = _this._colors.foreground.css; | ||
} | ||
else if (cell.isFgRGB()) { | ||
_this._ctx.fillStyle = "rgb(" + BufferLine_1.AttributeData.toColorRGB(cell.getFgColor()).join(',') + ")"; | ||
} | ||
else { | ||
var fg = cell.getFgColor(); | ||
if (terminal.options.drawBoldTextInBrightColors && cell.isBold() && fg < 8) { | ||
fg += 8; | ||
} | ||
_this._ctx.fillStyle = _this._colors.ansi[fg].css; | ||
} | ||
} | ||
else if (cell.isFgPalette()) { | ||
_this._ctx.fillStyle = _this._colors.ansi[cell.getFgColor()].css; | ||
} | ||
_this.fillBottomLineAtCells(x, y, cell.getWidth()); | ||
@@ -160,0 +169,0 @@ _this._ctx.restore(); |
{ | ||
"name": "xterm", | ||
"description": "Full xterm terminal, in your browser", | ||
"version": "3.13.0-beta2", | ||
"version": "3.13.0-beta3", | ||
"main": "lib/public/Terminal.js", | ||
@@ -6,0 +6,0 @@ "types": "typings/xterm.d.ts", |
@@ -325,10 +325,14 @@ /** | ||
} | ||
} else if (cell.isFgRGB()) { | ||
this._ctx.fillStyle = `rgb(${AttributeData.toColorRGB(cell.getFgColor()).join(',')})`; | ||
} else if (cell.isFgPalette()) { | ||
let fg = cell.getFgColor(); | ||
if (terminal.options.drawBoldTextInBrightColors && cell.isBold() && fg < 8) { | ||
fg += 8; | ||
} else { | ||
if (cell.isFgDefault()) { | ||
this._ctx.fillStyle = this._colors.foreground.css; | ||
} else if (cell.isFgRGB()) { | ||
this._ctx.fillStyle = `rgb(${AttributeData.toColorRGB(cell.getFgColor()).join(',')})`; | ||
} else { | ||
let fg = cell.getFgColor(); | ||
if (terminal.options.drawBoldTextInBrightColors && cell.isBold() && fg < 8) { | ||
fg += 8; | ||
} | ||
this._ctx.fillStyle = this._colors.ansi[fg].css; | ||
} | ||
this._ctx.fillStyle = this._colors.ansi[fg].css; | ||
} | ||
@@ -335,0 +339,0 @@ |
@@ -220,6 +220,14 @@ /** | ||
} | ||
} else if (cell.isFgRGB()) { | ||
this._ctx.fillStyle = `rgb(${AttributeData.toColorRGB(cell.getFgColor()).join(',')})`; | ||
} else if (cell.isFgPalette()) { | ||
this._ctx.fillStyle = this._colors.ansi[cell.getFgColor()].css; | ||
} else { | ||
if (cell.isFgDefault()) { | ||
this._ctx.fillStyle = this._colors.foreground.css; | ||
} else if (cell.isFgRGB()) { | ||
this._ctx.fillStyle = `rgb(${AttributeData.toColorRGB(cell.getFgColor()).join(',')})`; | ||
} else { | ||
let fg = cell.getFgColor(); | ||
if (terminal.options.drawBoldTextInBrightColors && cell.isBold() && fg < 8) { | ||
fg += 8; | ||
} | ||
this._ctx.fillStyle = this._colors.ansi[fg].css; | ||
} | ||
} | ||
@@ -226,0 +234,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2555793
38544