-
Notifications
You must be signed in to change notification settings - Fork 35
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
Foreground color broken when background color specified #59
Comments
+1 i just noticed that! |
ah, here: / /echo -aCbgblue,BCred Foo! doesn't work. / /echo -aBCred,Cbgblue Foo! works! |
Ok, I figured out why. It's because the BG colour flag overlaps with the FG colour variable itself.
|
now, this is a bit terrible because I don't know if the high bit is used, it doesn't LOOK like it from a cursory glance, but that made echo work properly again. |
erikarn
pushed a commit
to erikarn/tinyfugue
that referenced
this issue
Nov 12, 2022
bg colours in 256 colour mode is using a flag bit that overlaps with the fg colour byte. Shift it to bit 31.
Pull request is here - #61 |
ingwarsw
added a commit
that referenced
this issue
Nov 16, 2022
Fix issue #59 - fg colour broken with using bg colours
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When specifying a background color, any specified foreground color is improperly displayed. To reproduce, use:
/echo -aCblack,Cbgyellow test
The expected result is black font with yellow background, but the actual result is red font with yellow background.
The text was updated successfully, but these errors were encountered: