Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tmux output numbers separated by semicolon at startup #272

Open
bsylvain opened this issue Jan 2, 2024 · 7 comments
Open

Tmux output numbers separated by semicolon at startup #272

bsylvain opened this issue Jan 2, 2024 · 7 comments

Comments

@bsylvain
Copy link

bsylvain commented Jan 2, 2024

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
Copy link

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
Copy link

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
Copy link

@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
Copy link

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

image

^[[>0;10;1c%
[~]$ 0;10;1c

@PunkPhysicist
Copy link

@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
Copy link

PunkPhysicist commented Mar 12, 2024

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
Copy link

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

  • urxvt
  • Windows Terminal

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants