What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
Yabai
WezTerm version
I get: "wezterm not found" when running this command
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
I initially set out to configure tmux and WezTerm to accept the key combination "Ctrl+Enter". To achieve this, I added the following settings to my tmux config:
set -g default-terminal "xterm-256color"
set -g extended-keys on
set -as terminal-features 'xterm*:extkeys'
While these settings successfully enabled Ctrl+Enter functionality, they introduced an unexpected side effect: pasting text now results in abnormal behavior. When pasting, escape sequences are inserted into the content, particularly replacing return characters. For example, pasting a simple enum from the clipboard results in this output:
This issue occurs only in WezTerm when used with tmux and the extended key settings. The same tmux configuration works correctly in iTerm2, suggesting the problem is specific to WezTerm's interaction with tmux when these extended key settings are enabled.
I'm able to reproduce this issue with the default WezTerm configuration (i..e no configuration of my own), and have also tried multiple options but failed to find anything that works.
To Reproduce
Start WezTerm
Launch tmux using the configuration provided above
Copy a multi-line text snippet (e.g., code block) to your clipboard
Paste the text into the tmux session in WezTerm (using Cmd+V or right-click paste)
Observe that the pasted text includes unexpected escape sequences, particularly replacing return characters
Configuration
Default configuration, i.e. nothing custom.
Expected Behavior
Pasting without escape sequence with the following tmux configuration :
set -g default-terminal "xterm-256color"
set -g extended-keys on
set -as terminal-features 'xterm*:extkeys'
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
Yabai
WezTerm version
I get: "wezterm not found" when running this command
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
I initially set out to configure tmux and WezTerm to accept the key combination "Ctrl+Enter". To achieve this, I added the following settings to my tmux config:
While these settings successfully enabled Ctrl+Enter functionality, they introduced an unexpected side effect: pasting text now results in abnormal behavior. When pasting, escape sequences are inserted into the content, particularly replacing return characters. For example, pasting a simple enum from the clipboard results in this output:
This issue occurs only in WezTerm when used with tmux and the extended key settings. The same tmux configuration works correctly in iTerm2, suggesting the problem is specific to WezTerm's interaction with tmux when these extended key settings are enabled.
I'm able to reproduce this issue with the default WezTerm configuration (i..e no configuration of my own), and have also tried multiple options but failed to find anything that works.
To Reproduce
Configuration
Default configuration, i.e. nothing custom.
Expected Behavior
Pasting without escape sequence with the following tmux configuration :
Logs
No response
Anything else?
I'm on the latest nightly build.
Running
Gives me the message: