Skip to content

fix(zsh): reset ghostty mouse tracking on prompt#71

Merged
lox merged 2 commits intomainfrom
ghostty-mouse-tracking-reset
Mar 9, 2026
Merged

fix(zsh): reset ghostty mouse tracking on prompt#71
lox merged 2 commits intomainfrom
ghostty-mouse-tracking-reset

Conversation

@lox
Copy link
Owner

@lox lox commented Mar 9, 2026

Summary

  • add a precmd hook in zsh/ghostty.zsh to disable common terminal mouse-tracking modes
  • run the reset before each prompt in Ghostty sessions

Why

When an SSH or tmux session exits unexpectedly, mouse-tracking modes can remain enabled and produce noisy escape sequences in the terminal. Resetting these modes on each prompt keeps the shell usable.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d7ccf454bf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lox
Copy link
Owner Author

lox commented Mar 9, 2026

@codex review

@lox lox merged commit 5c7fb9d into main Mar 9, 2026
1 check 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.

1 participant