ANSI formatted text cannot have both a background and foreground colour #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Let's say I had a script that ran
print("\x1b[46;34mText"), you would assume that it would print blue text with a cyan background colour. Instead, I get white text (the text colour of the terminal) on a cyan background.If I were to instead flip the order of the arguments and run
print("\x1b[34;46mText"), the reverse problem happens where the text is blue but the background colour is black (the terminal background).This problem applies to all types of ANSI formatting (3/4-bit, 8-bit, 24-bit).
Makes sense. I think the ANSI engine is made to only process one thing at a time.