You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Help wanted: tmux print control chars after startup #2844
As title said, tmux would print ^[[>0;10;1c; after startup.
it can be reproduced without user-defined .tmux.conf, just start tmux and exit, and do these action for several times, the string will be printed. How to eliminate them?
Required information
Please provide the following information:
tmux 3.2a with Z-Shell 5.8
openSUSE Tumbleweed 20210817 in virtual box, connected from windows by SSH for windows 8.1p1
If you start and detach tmux fast enough and your terminal is slow enough to respond, then the device query string tmux asked for will end up on the terminal. Is that what you are doing?
I cannot get the point. how much the time is fast enough to start and detach tmux?
these chars would appear even if I do other operations instead of exiting it.
The problem is that tmux is asking for this sequence to be sent once but your terminal is sending it twice. Does this still happen if you use a different terminal?
sorry for replying late.
I have tried in PuTTY, the string was not printed on screen.
And I configured .tmux.conf to disable the status bar, the string was not printed neither.
But I don't want to disable status bar, because I need it to manager windows in tmux, any suggestions?
escape-time time
Set the time in milliseconds for which tmux waits after an escape is input to determine if it is part of
a function or meta key sequences. The default is 500 milliseconds.
@Stark-Zhang what happen if you add "set -sg escape-time 10" to your .tmux.conf to increase the time from the default 500ms?
@Stark-Zhang is this happening when connecting to a remote system or only to the local VM. I can't install Virtualbox due to being mutually exclusive with WSL2 running on my local machine. I could not reproduce when launching tmux on a remote system.
I don't know, this seems like it is definitely a terminal bug. This is what tmux is sending up to the point it receives the doubled DA response, out.txt. But it contains nothing unusual and we have tried removing the most obvious stuff, it is not consistent. This needs someone to see what the terminal actually thinks it is sending.
Activity
nicm commentedon Aug 23, 2021
Is this printed inside or outside tmux? Please attach the logs to this issue:
zhang-stephen commentedon Aug 23, 2021
No, it appeared after tmux startup only. Logs are following, I just exit tmux after it started:
tmux-server-12191.log
tmux-out-12191.log
tmux-client-12189.log
nicm commentedon Aug 23, 2021
How did you attach this log? Did you give it time to upload? It doesn't work:
zhang-stephen commentedon Aug 24, 2021
I dragged and dropped them in writing box. it might be my network issue. Could you access them this time?
tmux-client-12189.log
tmux-out-12191.log
tmux-server-12191.log
nicm commentedon Aug 24, 2021
If you start and detach tmux fast enough and your terminal is slow enough to respond, then the device query string tmux asked for will end up on the terminal. Is that what you are doing?
zhang-stephen commentedon Aug 24, 2021
I cannot get the point. how much the time is fast enough to start and detach tmux?
these chars would appear even if I do other operations instead of exiting it.
nicm commentedon Aug 24, 2021
If you do this outside tmux, what do you see:
zhang-stephen commentedon Aug 24, 2021
I got this, and this string will be printed when I input
<CR>.nicm commentedon Aug 24, 2021
The problem is that tmux is asking for this sequence to be sent once but your terminal is sending it twice. Does this still happen if you use a different terminal?
nicm commentedon Aug 24, 2021
Can you run tmux like this:
Then reproduce and show me the strace.out file.
nicm commentedon Aug 24, 2021
Actually add -vv as well:
zhang-stephen commentedon Aug 24, 2021
I have tried bash(5.1.8) and sh(5.1), and this problem appeared.
strace.zip
nicm commentedon Aug 24, 2021
bash and sh are not terminals, they are shells. Try a different terminal like putty.
zhang-stephen commentedon Aug 24, 2021
got it, I have tried in windows terminal and MobaXterm, this problem appeared.
nicm commentedon Aug 24, 2021
Do you still see it if you run
tmux -f/dev/null -Ltest new -- catso tmux runscatinstead of your shell?29 remaining items
zhang-stephen commentedon Sep 4, 2021
sorry for replying late.
I have tried in PuTTY, the string was not printed on screen.
And I configured
.tmux.confto disable the status bar, the string was not printed neither.But I don't want to disable status bar, because I need it to manager windows in tmux, any suggestions?
zhang-stephen commentedon Sep 4, 2021
hmmm... Test with windows terminal.
Status bar disabled seems not resolve this issue completely, but the probability seems decreased.
nicm commentedon Sep 4, 2021
Can you reproduce without status line and with
-vvand show me the tmux log files? For example do:This is almost certainly a terminal bug so if we narrow it down we may be able to work around it but we won't be able to fix it in tmux.
zhang-stephen commentedon Sep 4, 2021
tmux-log.zip
OK, I will push an issue to windows terminal if it's a terminal bug.
nicm commentedon Sep 6, 2021
I cannot download this latest zip file, are you sure you uploaded it correctly?
zhang-stephen commentedon Sep 12, 2021
tmux-log.zip
could you re-open this issue? I am sorry for forgetting it.
zhang-stephen commentedon Sep 12, 2021
I have pushed the issue to windows terminal as #11204
elsaco commentedon Sep 12, 2021
From tmux manual:
@Stark-Zhang what happen if you add "set -sg escape-time 10" to your .tmux.conf to increase the time from the default 500ms?
@Stark-Zhang is this happening when connecting to a remote system or only to the local VM. I can't install Virtualbox due to being mutually exclusive with WSL2 running on my local machine. I could not reproduce when launching tmux on a remote system.
nicm commentedon Sep 13, 2021
I don't know, this seems like it is definitely a terminal bug. This is what tmux is sending up to the point it receives the doubled DA response, out.txt. But it contains nothing unusual and we have tried removing the most obvious stuff, it is not consistent. This needs someone to see what the terminal actually thinks it is sending.
zhang-stephen commentedon Sep 19, 2021
yes, let's take a look what responded from developers of Windows Terminal.
github-actions commentedon Nov 28, 2021
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.