tmux-plugins / tpm

Tmux Plugin Manager
MIT License
12.07k stars 421 forks source link

Tmux output numbers separated by semicolon at startup #272

Open bsylvain opened 9 months ago

bsylvain commented 9 months ago

After installing TPM, when I start tmux it I have a value already typed on the prompt : image

I removed most of .zshrc and .tmux.conf (except tpm) and it still does it. I am using Tmux 3.2a with ubuntu 22 on WSL.

magoerlich commented 8 months ago

I got the same issue, but i don't think its a issue with TPM directly.

I use it on Ubuntu 20.04 via SSH from a Windows Terminal And I think thats where the issue lies: tpm/tmux using some escape codes the WT can't handle correctly. But thats just a guess based on my small knowledge about how terminals work and the observation that it works on all my systems unless i use Windows Terminal as Terminal Emulator.

I hope someone here with a little bit more knowledge can verify this somehow

PunkPhysicist commented 7 months ago

I have this problem too on native Linux (on Arch Linux w/urxvt terminal). The problem seems to persist even if I move/delete the tmux.conf and ~/.tmux/ folder with my tpm plugins.

New tmux session with tpm and tmux.conf

New tmux session without tpm and tmux.conf

magoerlich commented 7 months ago

@PunkPhysicist is this via ssh? if so, do you have the urxvt terminfo installed on the remote host?

If not, or if you'r not sure try this:

# Local maschine, create terminfo file and copy it to remote
infocmp -L rxvt-unicode-256color > ~/rxvt-unicode-256color.terminfo
scp ~/rxvt-unicode-256color.terminfo serverip:/home/user/

# ssh into remote server and install it
install -d ~/.terminfo
tic -o .terminfo/ ~/rxvt-unicode-256color.terminfo
rm rxvt-unicode-256color.terminfo
RossBarnie commented 7 months ago

To add another Windows Terminal example, TERM is tmux-256color:

image

^[[>0;10;1c%
[~]$ 0;10;1c
PunkPhysicist commented 7 months ago

@PunkPhysicist is this via ssh? if so, do you have the urxvt terminfo installed on the remote host?

If not, or if you'r not sure try this:

# Local maschine, create terminfo file and copy it to remote
infocmp -L rxvt-unicode-256color > ~/rxvt-unicode-256color.terminfo
scp ~/rxvt-unicode-256color.terminfo serverip:/home/user/

# ssh into remote server and install it
install -d ~/.terminfo
tic -o .terminfo/ ~/rxvt-unicode-256color.terminfo
rm rxvt-unicode-256color.terminfo

No, this is not via ssh.

PunkPhysicist commented 6 months ago

Update: This seems to only be an issue if I'm using the urxvt terminal (currently urxvt v9.31 released 2023-01-02), changing to any other terminal "solves" this problem for me.

magoerlich commented 6 months ago

@PunkPhysicist yes, how terminal escape codes are interpretd differs from Terminal Emulator to Terminal Emulator. So far the Emulators mentioned in this issue:

Any other emulator is probably working fine (unless otherwise reported)