Windows Terminal randomly sends bracketed end marker to tmux when pasting #23586

Open
opened 2026-01-31 08:46:30 +00:00 by claunia · 0 comments
Owner

Originally created by @mihaifm on GitHub (Sep 3, 2025).

Windows Terminal version

1.24.2372.0

Windows build number

10.0.26100.4946

Other Software

tmux 3.5a

Steps to reproduce

Stock Debian Trixie via ssh.

apt install tmux
tmux
cat -v

Now paste some text with ctrl-shift-v or ctrl-v. After some tries the ^[[201~ sequence can be seen. It's totally random, sometimes it might take multiple pastes to see it.

Note that only the end marker is seen, never the begin marker ^[[200~

While some shells (bash, zsh) disregard the sequence without causing any issues, this is very problematic for ksh for example. In any case, regardless of what the shell does, the fact that the end marker is randomly being sent seems like a bug.

Issue replicates on other Linux distros like Redhat, with latest version of tmux and Windows Terminal canary release.

Expected Behavior

No ^[[201~ sequence present in the output of cat -v after pasting text.

Actual Behavior

The ^[[201~ sequence is randomly seen in the output of cat -v after pasting text

Originally created by @mihaifm on GitHub (Sep 3, 2025). ### Windows Terminal version 1.24.2372.0 ### Windows build number 10.0.26100.4946 ### Other Software tmux 3.5a ### Steps to reproduce Stock Debian Trixie via ssh. apt install tmux tmux cat -v Now paste some text with ctrl-shift-v or ctrl-v. After some tries the `^[[201~` sequence can be seen. It's totally random, sometimes it might take multiple pastes to see it. Note that only the end marker is seen, never the begin marker `^[[200~` While some shells (bash, zsh) disregard the sequence without causing any issues, this is very problematic for ksh for example. In any case, regardless of what the shell does, the fact that the end marker is randomly being sent seems like a bug. Issue replicates on other Linux distros like Redhat, with latest version of tmux and Windows Terminal canary release. ### Expected Behavior No `^[[201~` sequence present in the output of `cat -v` after pasting text. ### Actual Behavior The `^[[201~` sequence is randomly seen in the output of `cat -v` after pasting text
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 08:46:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23586