Skip to content

colors: Add blink, dim and strikethrough to the colorscheme attributes#4126

Open
JoeKar wants to merge 2 commits into
micro-editor:masterfrom
JoeKar:feature/style-attributes
Open

colors: Add blink, dim and strikethrough to the colorscheme attributes#4126
JoeKar wants to merge 2 commits into
micro-editor:masterfrom
JoeKar:feature/style-attributes

Conversation

@JoeKar

@JoeKar JoeKar commented Jun 17, 2026

Copy link
Copy Markdown
Member

Closes #4125


func TestMultiAttributesStringToStyle(t *testing.T) {
s := StringToStyle("bold italic underline cyan,brightcyan")
s := StringToStyle("bold blink dim italic reverse strikethrough underline cyan,brightcyan")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remove strikethrough from this string, the test still passes. What am I doing wrong?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing, but you uncovered a type "conflict" which doesn't fail on negative evaluation.

We have two options:

  1. positive comparison against the same type
  2. negative comparison against the type cast to int, which doesn't fail compared against 0

Comment thread runtime/help/colors.md
JoeKar added 2 commits July 17, 2026 09:27
…type

Otherwise assert.NotEqual() still passes since the attributes type is not int.
@JoeKar
JoeKar force-pushed the feature/style-attributes branch from c294f28 to 49894a7 Compare July 17, 2026 08:01
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

Successfully merging this pull request may close these issues.

Add support for strikethrough in colorschemes

2 participants