Skip to content

vt: align SGR C enum tags with parser output - #11239

Merged
mitchellh merged 1 commit into
mainfrom
push-uoyzuzomsskw
Mar 8, 2026
Merged

mitchellh merged 1 commit into
mainfrom
push-uoyzuzomsskw

Conversation

@mitchellh

Copy link
Copy Markdown
Contributor

Remove the stale GHOSTTY_SGR_ATTR_RESET_UNDERLINE entry from the C header and renumber subsequent GhosttySgrAttributeTag values to match src/terminal/sgr.zig Attribute.Tag ordering.

This fixes misclassified attributes from ghostty_sgr_next for C consumers that switch on the enum tags from include/ghostty/vt/sgr.h.

Remove the stale GHOSTTY_SGR_ATTR_RESET_UNDERLINE entry from the C header
and renumber subsequent GhosttySgrAttributeTag values to match
src/terminal/sgr.zig Attribute.Tag ordering.

This fixes misclassified attributes from ghostty_sgr_next for C consumers
that switch on the enum tags from include/ghostty/vt/sgr.h.
@mitchellh
mitchellh merged commit 43f3d2c into main Mar 8, 2026
119 checks passed
@mitchellh
mitchellh deleted the push-uoyzuzomsskw branch March 8, 2026 20:01
@github-actions github-actions Bot added this to the 1.3.0 milestone Mar 8, 2026
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.

1 participant