Xterm.js: All theme colors not supported

Created on 16 Mar 2020  路  1Comment  路  Source: xtermjs/xterm.js

I wanted to apply custom theme but it seems that it's not possible for this version. In my opinion it seems to be some kind of bug. What I did in code is:

  • set foreground color to #0FF (which is the cyan color - good)
  • set green color to #F00 (which is supposed to turn into red but it's still green - bad)

Untitled

Details

  • Browser and browser version: Electron version 8.1.1
  • OS version: Ubuntu 19.04
  • xterm.js version: 4.4.0

Steps to reproduce

Code:

const xterm = new Terminal({
    cols: 80,
    rows: 30,
    theme: {
        foreground: '#0FF',
        green: '#F00'
    }
})

xterm.open(xtermElem)

_( I have tried the same thing on just electron + xtermjs but still that didn't work. )_

typquestion

Most helpful comment

That's likely brightGreen as it's bold. Or you can set drawBoldTextInBrightColors to false.

>All comments

That's likely brightGreen as it's bold. Or you can set drawBoldTextInBrightColors to false.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

circuitry2 picture circuitry2  路  4Comments

chris-tse picture chris-tse  路  4Comments

albinekb picture albinekb  路  4Comments

Tyriar picture Tyriar  路  4Comments

Mlocik97-issues picture Mlocik97-issues  路  3Comments