You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I don't want the color of bold text to change to the brighter version.
Describe the solution you'd like
I want an option to turn off the bold text color change.
In the underlying xterm.js library, there is a flag in ITerminalOptions called drawBoldTextInBrightColors, which by default is set true. I assume that setting this flag false will give my desired behavior. Can this be exposed as an option in the hyper.js config file? It looks like the getTermOptions function in hyper/lib/components/term.tsx can be changed to accept this additional option. Probably needs to be changed in other places as well.
I'm not the first to bring up this issue, but I haven't seen anyone mention the flag in the xterm.js library, so I assume it's relatively new. If that flag works as described, this should be a straightforward feature to implement.
Describe alternatives you've considered
I looked into making a plugin, but it doesn't look like the right way to solve this problem.
Additional context
Screenshot shows current unwanted behavior:
The text was updated successfully, but these errors were encountered:
The flag in question was added to xterm.js as described by xtermjs/xterm.js#1391. That version of xterm.js was merged into Hyper with the intent of providing this feature according to issue #2836. Unless I am missing something, it's not actually possible to set this xterm.js flag in Hyper right now.
This isn't a zsh or zsh prompt specific issue, although that's where I first noticed it. I can also reproduce it using standard ANSI escape codes. Make sure your basic colors (0-7) are set different than the bright variants (8-15) in your Hyper config file so that you may easily distinguish them. Here is a Python script to show the behavior.
colors = list(range(30, 38)) + list(range(90, 98)) # ANSI escape codes
print('normal: ', end='')
for c in colors:
print(f'\33[{c}m {c}', end='')
print('\33[1m') # bold
print('bold: ', end='')
for c in colors:
print(f'\33[{c}m {c}', end='')
print('\33[0m') # reset
print('')
You will see that the first 8 bold colors are undesirably showing the bright version (color + 8).
Is your feature request related to a problem? Please describe.
I don't want the color of bold text to change to the brighter version.
Describe the solution you'd like
I want an option to turn off the bold text color change.
In the underlying
xterm.js
library, there is a flag inITerminalOptions
calleddrawBoldTextInBrightColors
, which by default is set true. I assume that setting this flag false will give my desired behavior. Can this be exposed as an option in thehyper.js
config file? It looks like thegetTermOptions
function inhyper/lib/components/term.tsx
can be changed to accept this additional option. Probably needs to be changed in other places as well.I'm not the first to bring up this issue, but I haven't seen anyone mention the flag in the
xterm.js
library, so I assume it's relatively new. If that flag works as described, this should be a straightforward feature to implement.Describe alternatives you've considered
I looked into making a plugin, but it doesn't look like the right way to solve this problem.
Additional context

Screenshot shows current unwanted behavior:
The text was updated successfully, but these errors were encountered: