Skip to content

Comments

shell-integration: configurable 'cursor' shapes#10776

Open
jparise wants to merge 2 commits intoghostty-org:mainfrom
jparise:shell-cursor-config
Open

shell-integration: configurable 'cursor' shapes#10776
jparise wants to merge 2 commits intoghostty-org:mainfrom
jparise:shell-cursor-config

Conversation

@jparise
Copy link
Contributor

@jparise jparise commented Feb 17, 2026

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.


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).

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.
@jparise jparise requested a review from a team as a code owner February 17, 2026 04:06
@jparise jparise requested a review from a team as a code owner February 17, 2026 04:06
Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

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

Just gonna throw a red on here because I want to consider the config syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants