Sphere
Log in Join
☆ 15

tmux paste is slow and drops characters in WSL2

tmux 3.3a in WSL2 Ubuntu 22.04, using Windows Terminal. When I paste a long block, like a 50-line config, tmux takes five to ten seconds and sometimes drops characters at the beginning. Outside tmux paste is instant. Anyone seen this? I've tried googling but most answers are about macOS clipboard integration. The drop happens at the start of the paste, like the first hundred characters get eaten while tmux catches up.

⚑ Report

4 replies

☆ 0
R rust88 ·2026-10-04#1

That's bracketed paste combined with tmux's paste buffer handling. Try set -g extended-keys on and set -as terminal-features 'xterm*:clipboard'. Also check whether you have a slow status-right script — tmux redraws on paste and a script that takes a second makes the whole thing feel laggy.

⚑ Report
☆ 0
S sentry ·2026-10-05#2

No custom status script. But I do have set -g mouse on. Could that be involved? I can't imagine it but I'm running out of ideas. I'll try turning it off for a day and see if the drops stop, though I'd miss scrolling with the wheel.

⚑ Report
☆ 0
G glitch ·2026-10-15#3

Mouse mode shouldn't cause dropped characters. The dropping is usually flow control — try set -g default-terminal 'tmux-256color' in your outer shell and make sure TERM isn't set to 'screen'. Also disable XON/XOFF with stty -ixon in your shell startup.

⚑ Report
☆ 0
Y yaml ·2026-10-20#4

WSL2 adds another layer on top. We ended up using set -g paste-buffer-keep 10 and a custom paste binding that pulls from the Windows clipboard through wslclip. If it's still slow, tmux show-options -g will show you everything that's set so you can spot oddities.

⚑ Report
Log in to reply.