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

The terminal cursor does not flash after using tmux #16923

Closed
huenrong opened this issue Mar 23, 2024 · 6 comments
Closed

The terminal cursor does not flash after using tmux #16923

huenrong opened this issue Mar 23, 2024 · 6 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@huenrong
Copy link

Windows Terminal version

1.19.10573.0

Windows build number

10.0.22631.3296

Other Software

tmux 3.0a
Linux ubuntu2004 6.2.16-19-pve #1 SMP PREEMPT_DYNAMIC PMX 6.2.16-19 (2023-10-24T12:07Z) x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce

  1. Use ssh to connect to the Ubuntu server through the configuration file in Windows Terminal
  2. After connecting, the cursor will flash in the Ubuntu default terminal
  3. Open tmux in Ubuntu
  4. Cursor does not flash in tmux
  5. Exit tmux and return to Ubuntu default terminal
  6. The cursor does not flash either

Expected Behavior

  1. The cursor can flash when using tmux
  2. The cursor can flash after exiting tmux

Actual Behavior

The cursor does not flash after using tmux

There is no such problem in SecureCRT

@huenrong huenrong added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 23, 2024
@lhecker
Copy link
Member

lhecker commented Mar 25, 2024

This sounds very similar to #10754 but I don't think I've seen this for tmux before.

@huenrong
Copy link
Author

This sounds very similar to #10754 but I don't think I've seen this for tmux before.

I remember that I didn't have this problem when I used Windows Terminal some time ago. Recently I found that it had this problem.

@j4james
Copy link
Collaborator

j4james commented Mar 26, 2024

I remember that I didn't have this problem when I used Windows Terminal some time ago.

@huenrong Windows Terminal didn't support the escape sequence for changing the cursor blinking state prior to version 1.9, so that's why you may not have had this problem in the past.

As a temporary solution, you can probably work around the issue by setting TERM=vte-256color before starting tmux, although that may have other unwanted side effects.

In the longer term, Windows Terminal could add an option to block applications from messing with the cursor blinking state, which was one of the ideas suggested in #10754.

@huenrong
Copy link
Author

I remember that I didn't have this problem when I used Windows Terminal some time ago.

@huenrong Windows Terminal didn't support the escape sequence for changing the cursor blinking state prior to version 1.9, so that's why you may not have had this problem in the past.

As a temporary solution, you can probably work around the issue by setting TERM=vte-256color before starting tmux, although that may have other unwanted side effects.

In the longer term, Windows Terminal could add an option to block applications from messing with the cursor blinking state, which was one of the ideas suggested in #10754.

Thanks, after setting TERM, it is okay

@zadjii-msft
Copy link
Member

Thanks for the discussion all. We'll consolidate this with /dup #10754

@zadjii-msft zadjii-msft closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2024
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Needs-Tag-Fix Doesn't match tag requirements and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

4 participants