Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal: cursor doesn't blink until I press a key #7401

Closed
1 task done
warpdesign opened this issue Feb 5, 2024 · 1 comment · Fixed by #7428
Closed
1 task done

Terminal: cursor doesn't blink until I press a key #7401

warpdesign opened this issue Feb 5, 2024 · 1 comment · Fixed by #7428
Labels
defect [core label] setting Feedback for preferences, configuration, etc terminal Feedback for terminal integration, shell commands, etc

Comments

@warpdesign
Copy link

warpdesign commented Feb 5, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I added this to the settings json:

  "terminal": {
    "blinking": "on"
  }

And cursor doesn't blink unless I type something in the terminal.

Environment

Zed: v0.121.3 (Zed Preview)
OS: macOS 13.6.1
Memory: 8 GiB
Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

zed-terminal-blink.mov

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

@warpdesign warpdesign added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Feb 5, 2024
@mrnugget mrnugget added the terminal Feedback for terminal integration, shell commands, etc label Feb 6, 2024
mrnugget added a commit that referenced this issue Feb 6, 2024
This fixes #7401 and probably a few other things that seemed odd with
the terminal.

Turns out that `TerminalView` has `focus_in` and `focus_out` callbacks,
but they were never called. The `focus_handle` on which they were set was
not passed in to `TerminalView`.

That meant that the `impl FocusableView for TerminalView` never returned
the focus handle with the right callbacks.

This change here uses the already created focus handle and passes it in,
so that `focus_in` and `focus_out` are now correctly called.
mrnugget added a commit that referenced this issue Feb 6, 2024
This fixes #7401 and probably a few other things that seemed odd with
the terminal.

Turns out that `TerminalView` has `focus_in` and `focus_out` callbacks,
but they were never called. The `focus_handle` on which they were set
was not passed in to `TerminalView`.

That meant that the `impl FocusableView for TerminalView` never returned
the focus handle with the right callbacks.

This change here uses the already created focus handle and passes it in,
so that `focus_in` and `focus_out` are now correctly called.

Release Notes:

- Fixed terminal not handling focus-state correctly and, for example,
not restoring cursor blinking state correctly.
([#7401](#7401)).
@mrnugget
Copy link
Member

mrnugget commented Feb 6, 2024

Thanks for reporting! I fixed it in #7428, which will go out with a Preview release this week and a stable release next week (or maybe we'll cherry-pick before)

@JosephTLyons JosephTLyons added setting Feedback for preferences, configuration, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] setting Feedback for preferences, configuration, etc terminal Feedback for terminal integration, shell commands, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants