Skip to content

fix: update Se terminfo entry to reset cursor to configured default - #12487

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
kylesower:terminfo_cursor_reset_style
Apr 27, 2026
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
kylesower:terminfo_cursor_reset_style

Conversation

@kylesower

Copy link
Copy Markdown
Contributor

Problem

Current Se sequence (reset cursor style) is \E[2 q, which always sets steady block, regardless of user config.

Solution

Update sequence to \E[0 q, which sets the cursor style to the user configured default cursor.

fix #12482
Helps with neovim issue: neovim/neovim#38987

AI Disclosure

I didn't use AI for this, haha. Unless you count random questions to learn about terminfo beforehand, but I relied on legit resources for real info. It says:

Se resets the cursor style to the terminal power-on default.

I think the useful interpretation is to set the user configured default.

@kylesower
kylesower requested a review from a team as a code owner April 27, 2026 03:41

@jcollie jcollie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM pending CI

@mitchellh mitchellh added this to the 1.3.2 milestone Apr 27, 2026
@mitchellh
mitchellh merged commit c19ce03 into ghostty-org:main Apr 27, 2026
91 checks passed
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.

Inconsistent terminfo entry for resetting cursor style

3 participants