Attaching to tmux session echoes " 1;2c" string to terminal

REPRODUCIBILITY: 100%
OS VERSION: 4.6.0.15
HARDWARE: xperia I and III
UI LANGUAGE: EN
REGRESSION: -

DESCRIPTION:

open terminal (fingerterm or toeterm), ssh to ubuntu based shell server and attach previously opened tmux session (tmux attach -d). String β€œ1;2c” is echoed to prompt.

PRECONDITIONS:

Ubuntu shell server (24.04/24.10), does not happen with ubuntu 20.04 or debian bookworm.

STEPS TO REPRODUCE:

  1. open terminal
  2. ssh to recent ubuntu based server
  3. start tmux, deattach session and attach back

EXPECTED RESULT:

Nothing is echoed to terminal

ACTUAL RESULT:

string β€œ1;2c” is echoed to terminal

MODIFICATIONS:

openrepos/chum

ADDITIONAL INFORMATION:

Can be reproduced on kapsi.fi servers, suomuurain.kapsi.fi (ubuntu 24.10), works fine on other servers (lakka/hilla.kapsi.fi)

While I don’t have tmux handy, I believe that is an issue with the remote configuration, not the local terminal/tty/shell.
I may very well be wrong though.

Here’s some background on how/why this may happen.

1 Like