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

Assigning RGB colors doesn't work in macOS Mojave default terminal. #12

Closed
mcaay opened this issue Dec 23, 2018 · 2 comments
Closed

Assigning RGB colors doesn't work in macOS Mojave default terminal. #12

mcaay opened this issue Dec 23, 2018 · 2 comments

Comments

@mcaay
Copy link

mcaay commented Dec 23, 2018

I tried the proposed way of assigning colors, but it gives grey font regardless of the rgb values.

from sty import fg, bg, ef, rs, Rule, Render

fg.orange = Rule(Render.rgb_fg, 15, 15, 15)
print(fg.orange, end="")
print("aaa")

print(rs.all, end="")

image

As seen in the picture, this line:
b = bg(50, 255, 50) + 'Text with green bg' + rs.bg # select a 24bit rgb color directly.
also doesn't work and changes font color to grey.

@mcaay
Copy link
Author

mcaay commented Dec 23, 2018

8-bit colors do work.
from sty import fg, bg, ef, rs, Rule, Render
orange = fg(172)
print(orange, end="")
print("aaa")
print(rs.all, end="")

image

@feluxe
Copy link
Owner

feluxe commented Jan 19, 2019

Thanks for posting this!

I currently have no Mac available to test this, but it seem that terminal.app is not capable of rendering true color yet:

https://www.reddit.com/r/neovim/comments/4hil8a/mac_terminalapp_problems_with_true_colors/

I think there isn't much we can do about it. I guess the best we can do is create an issue for it on the terminal.app issue tracker (if there is one).

I'll add this issue to the Terminal Support section.

@feluxe feluxe changed the title Assigning new colors doesn't work in macOS Mojave default terminal. Assigning RGB colors doesn't work in macOS Mojave default terminal. Jan 19, 2019
@feluxe feluxe closed this as completed May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants