Skip to content

Garbage characters printed when attaching remote tmux session #18600

Closed

Description

@naftasantos

Windows Terminal version

1.22.10352.0

Windows build number

10.0.26100.0

Other Software

I work on a remote linux development instance. On that instance, I use tmux a lot. Recently (I'm not really sure after which update) whenever I connect to either a new or an existing tmux session, the following characters are printed on my terminal:

10;rgb:ffff/ffff/ffff

Based on this issue posted on the tmux github, this seems to be a terminal issue (in their case rxvt).

This seems to be related with something unicode. I changed a few settings on my tmux like set -g terminal-overrides ",xterm-256color:Tc" and setting set -g focus-events off. But none seem to have fixed the issue.

Given the previous issue, and the fact that this started happening recently, I suspect it's a new feature from the Terminal.

Steps to reproduce

My setup:

  • Local Windows 11 (version mentioned on the windows version specific field)
  • Remote Amazon Linux 2 instance
  • zsh with oh-my-zsh and p10k theme
  • tmux with oh-my-tmux config

SSH to the remote host, attach a session.

Expected Behavior

When attaching the session, no characters should be printed.

Actual Behavior

Characters will be printed on the shell.

Activity

  1. added
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Feb 20, 2025
  2. itszn commented on Feb 20, 2025

    @itszn

    Same issue here, this happens constantly.

    It seems to happen most often when resizing a page (ie alt+f or alt+enter)

  3. j4james commented on Feb 20, 2025

    @j4james
    Collaborator

    This is a duplicate of #18004. I think this is probably the result of tmux changing the default escape-time recently (see #18004 (comment) for more details). You can try setting that back to a more sensible value and see if it makes any difference, i.e. add something like set -sg escape-time 500 in your .tmux.conf file.

  4. naftasantos commented on Feb 20, 2025

    @naftasantos
    Author

    Updating escape-time worked for me. For refence, I also had to disable focus-events:

    set -g focus-events off
    

    Otherwise other characters would show up, for example:

    61;4;6;7;14;21;22;23;24;28;32;42c0;10;1c
    

    Thanks!

  5. DHowett commented on Sep 26, 2025

    @DHowett
  6. DHowett commented on Sep 26, 2025

    @DHowett
  7. DHowett commented on Sep 26, 2025

    @DHowett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions