xtermjs/xterm.js

Handling transparent BG color when used as FG

Open

#1,898 opened on Jan 16, 2019

View on GitHub
 (20 comments) (3 reactions) (1 assignee)TypeScript (1,574 forks)batch import
area/addon/webglarea/renderer-domgood first issuehelp wantedtype/bug

Repository metrics

Stars
 (16,196 stars)
PR merge metrics
 (Avg merge 2d 10h) (16 merged PRs in 30d)

Description

Nano displays its shortcuts with FG/BG colors reversed: image

However, when theme BG is transparent, following happens: image

The solution could be to have a separate flag that will render characters with no background as if background were transparent instead of theme.backgroundColor, but will still use the actual color for inverted elements.

Contributor guide