Skip to content

Implement blink attribute for text#11875

Open
brianc442 wants to merge 1 commit intoghostty-org:mainfrom
brianc442:blink
Open

Implement blink attribute for text#11875
brianc442 wants to merge 1 commit intoghostty-org:mainfrom
brianc442:blink

Conversation

@brianc442
Copy link
Copy Markdown

Fix for issue #7703

Add text_blink_visible flag to renderer thread. Text blink is toggled on the same timer as the existing cursor blink. All foreground rendering (glyphs, underline, overline, strikethrough) is skipped during the hidden phase, matching xterm behavior.

Claude Code was used to locate where changes were needed in the codebase, but the changes were written myself.

…nderer

thread. Text blink is toggled on the same timer as the existing cursor blink.
All foreground rendering (glyphs, underline, overline, strikethrough) is
skipped during the hidden phase, matching xterm behavior.
@brianc442 brianc442 requested a review from a team as a code owner March 26, 2026 21:46
@qwerasd205
Copy link
Copy Markdown
Member

Is there a reason the skip logic isn't implemented the same way as it is for the invisible flag?

@brianc442
Copy link
Copy Markdown
Author

Is there a reason the skip logic isn't implemented the same way as it is for the invisible flag?

Yes - I initially used the same if style.flags.blink: continue logic but when I tested, the text didn't actually blink. When I looked into why, it has to do with an underlying difference between invisible text and blinking text. Invisible text is explicitly skipped by the shaper in run.zig lines 63-67 since there are no glyphs rendered. The same is not true of blinking text so I wrapped each style individually instead.

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.

2 participants