Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bold text doesn't respect colors in config #2836

Closed
2 tasks done
LinusU opened this issue Apr 16, 2018 · 6 comments
Closed
2 tasks done

Bold text doesn't respect colors in config #2836

LinusU opened this issue Apr 16, 2018 · 6 comments
Labels
👆 Is Upstream Issue is the fault of something Hyper uses and not Hyper itself

Comments

@LinusU
Copy link

LinusU commented Apr 16, 2018

Issue

When outputting bold text, the colors specified in my .hyper.js file is no longer used, and instead, the default colors are used. This makes e.g. "bold cyan" look bad on a white background:

screen shot 2018-04-16 at 18 44 01

Expected output:

This is how Terminal.app renders the same thing, with the same color settings:

screen shot 2018-04-16 at 18 44 48

(note how the prompt doesn't look the same in Hyper since that's using bold colors as well)

@LinusU
Copy link
Author

LinusU commented Apr 16, 2018

This is possibly related: xtermjs/xterm.js#1239

@chabou
Copy link
Collaborator

chabou commented Apr 16, 2018

Totally related to xterm.

One workaround could be to disable brightColors. You can copy regular color as bright colors in your config:

  colors: {
      black: '#000000',
      red: '#C51E14',
      green: '#1DC121',
      yellow: '#C7C329',
      blue: '#0A2FC4',
      magenta: '#C839C5',
      cyan: '#20C5C6',
      white: '#C7C7C7',
      lightBlack: '#000000',
      lightRed: '#C51E14',
      lightGreen: '#1DC121',
      lightYellow: '#C7C329',
      lightBlue: '#0A2FC4',
      lightMagenta: '#C839C5',
      lightCyan: '#20C5C6',
      lightWhite: '#C7C7C7',
    },

Or use 1.x color scheme:

   colors: {
      black: '#000000',
      red: '#ff0000',
      green: '#33ff00',
      yellow: '#ffff00',
      blue: '#0066ff',
      magenta: '#cc00ff',
      cyan: '#00ffff',
      white: '#d0d0d0',
      lightBlack: '#000000',
      lightRed: '#ff0000',
      lightGreen: '#33ff00',
      lightYellow: '#ffff00',
      lightBlue: '#0066ff',
      lightMagenta: '#cc00ff',
      lightCyan: '#00ffff',
      lightWhite: '#ffffff'
    },

@chabou chabou added the 👆 Is Upstream Issue is the fault of something Hyper uses and not Hyper itself label Apr 16, 2018
@LinusU
Copy link
Author

LinusU commented Apr 17, 2018

Thanks for the workaround, fill try and fix this in Xterm instead though 😄

see xtermjs/xterm.js#1391 😎

@chabou
Copy link
Collaborator

chabou commented Apr 19, 2018

@LinusU Amazing! Please continue your good work on this PR!

@LabhanshAgrawal
Copy link
Collaborator

xtermjs/xterm.js#1391 is merged

@sircinnamon
Copy link

sircinnamon commented Jan 25, 2022

I think this bug is still present. Bold text is failing to respect the colors set in my config (both the color and the brightColor)

image

EDIT: Nevermind, bad copy paste - lightColor vs brightColor 🤦‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 Is Upstream Issue is the fault of something Hyper uses and not Hyper itself
Projects
None yet
Development

No branches or pull requests

4 participants