shell-integration: configurable 'cursor' shapes#10776
Open
jparise wants to merge 2 commits intoghostty-org:mainfrom
Open
shell-integration: configurable 'cursor' shapes#10776jparise wants to merge 2 commits intoghostty-org:mainfrom
jparise wants to merge 2 commits intoghostty-org:mainfrom
Conversation
This extends the 'cursor' shell integration feature to support all DECSCUSR cursor shapes (bar, block, underline) with configurable blink styles. Users can now specify `shell-integration-features = cursor:block`, `cursor:underline:steady`, `cursor:bar:blink`, etc. The default remains a bar cursor that respects the cursor-style-blink config (3cfb9d6). For convenience, `cursor:blink` and `cursor:steady` are supported as shortcuts that imply a bar cursor. GHOSTTY_SHELL_FEATURES now passes the DECSCUSR codes directly (e.g. `cursor:5` instead of `cursor:blink`), which simplifies shell script parsing. All shell integrations (bash, fish, zsh, elvish) have been updated to extract and use these codes.
mitchellh
requested changes
Feb 17, 2026
Contributor
mitchellh
left a comment
There was a problem hiding this comment.
Just gonna throw a red on here because I want to consider the config syntax.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This extends the 'cursor' shell integration feature to support all DECSCUSR cursor shapes (bar, block, underline) with configurable blink styles.
Users can now specify
shell-integration-features = cursor:block,cursor:underline:steady,cursor:bar:blink, etc. The default remains a bar cursor that respects the cursor-style-blink config (3cfb9d6).For convenience,
cursor:blinkandcursor:steadyare supported as shortcuts that imply a bar cursor.GHOSTTY_SHELL_FEATURES now passes the DECSCUSR codes directly (e.g.
cursor:5instead ofcursor:blink), which simplifies shell script parsing. All shell integrations (bash, fish, zsh, elvish) have been updated to extract and use these codes.AI Disclosure: I used Claude Code for the initial round of shell script changes and unit tests (it's great for bulk updates), but nearly all of the final product was touched by me (either written by hand or re-edited).