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

背景可以自定义么,有点看不清 #4

Open
JetWong0810 opened this issue Dec 24, 2021 · 1 comment
Open

背景可以自定义么,有点看不清 #4

JetWong0810 opened this issue Dec 24, 2021 · 1 comment

Comments

@JetWong0810
Copy link

image

@A0nameless0man
Copy link

看了一下代码,

foreground = color & 7
background = (color >> 4) & 7
bold = color & 8

用一个整数的低3位存字体颜色,高4位存背景色,第4位存加粗。这里看不清的部分好像是颜色指定为了8,导致前景和背景色一致,可以考虑进行如下替换:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants