The terminal cursor does not flash after using tmux #21431

Closed
opened 2026-01-31 07:44:31 +00:00 by claunia · 6 comments
Owner

Originally created by @huenrong on GitHub (Mar 23, 2024).

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

Originally created by @huenrong on GitHub (Mar 23, 2024). ### 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
claunia added the Issue-BugNeeds-Tag-FixResolution-Duplicate labels 2026-01-31 07:44:31 +00:00
Author
Owner

@lhecker commented on GitHub (Mar 25, 2024):

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

@lhecker commented on GitHub (Mar 25, 2024): This sounds very similar to #10754 but I don't think I've seen this for tmux before.
Author
Owner

@huenrong commented on GitHub (Mar 26, 2024):

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.

@huenrong commented on GitHub (Mar 26, 2024): > 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.
Author
Owner

@j4james commented on GitHub (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.

@j4james commented on GitHub (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.
Author
Owner

@huenrong commented on GitHub (Mar 27, 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.

Thanks, after setting TERM, it is okay

@huenrong commented on GitHub (Mar 27, 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. Thanks, after setting TERM, it is okay
Author
Owner

@zadjii-msft commented on GitHub (Mar 27, 2024):

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

@zadjii-msft commented on GitHub (Mar 27, 2024): Thanks for the discussion all. We'll consolidate this with /dup #10754
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Mar 27, 2024):

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[bot] commented on GitHub (Mar 27, 2024): 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! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21431