-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 exception in windows terminal #11204
Comments
From tmux manual:
@Stark-Zhang is the issue still present if you add "set -sg escape-time 10" to your .tmux.conf to increase the time from default? @Stark-Zhang is this happening when connecting to a remote system also? |
Does this repro if you use a vintage console window (i.e If you use |
This comment was marked as resolved.
This comment was marked as resolved.
|
|
I can reproduce this on a remote Ubuntu host over OpenSSH. On tmux startup there's the strange |
|
In tmux/tmux#2844, @nicm suggested that this was a terminal bug because tmux was receiving a "doubled DA response", but that's not what's actually happening here. The first response you see is just the input buffer echoing whatever it receives while the system is busy. Once control is returned to the shell, that input is eventually read and interpreted as key presses, and that's when the content is echoed a second time by the shell. In short, it's a single response, but echoed by two different parts of the system. You should be able to reproduce the same behavior in any other terminal with a simple statement like this:
So if the "double response" is the only bug we're tracking here, I don't think there's anything for us to fix. |
Sorry deleted my previous comment by mistake... I don't think this is the case, tmux logs show this coming in twice from the pty:
It does send it to the shell and the shell does print it, but this is expected because it treats the second response as normal key presses. You can see this in the strace log as well, note I have also shown when tmux turns off
|
@nicm That may be the case, but Windows Terminal is not just returning two responses - something else must be triggering that. And all the manual tests you were doing while cat-ing the logs seem to confirm that. For example, look at the output here: tmux/tmux#2844 (comment) You said that was the response being returned twice, but the first one (and the second partial bit after the prompt) are just what was written to the screen in the original log. The only reason you didn't see that on iTerm2 was because your screen size was different, and it couldn't fit the full height of the page. Note how you weren't seeing the first prompt line either (the one with the timestamp It also doesn't help that you were using It occurred to me, though, that there might be something else in the pipeline that is doing the same sort of thing, i.e. echoing the DA2 response without escaping control characters. Possibly the ssh client? That might explain why you see two responses despite sending only one request. |
I can only comment on what is happening with tmux and it is receiving two responses, this logging:
Means that tmux is reading from the pty and getting the same response twice. strace shows the same. There is no confusion with what is echoed or not echoed by the receiving process here. This does not seem to be a simple matter of one response being echoed by the tty layer and then by the process that receives it, as in your example shell command. tmux has turned the You are exactly right that something must be triggering it, but we were unable to work out what that was even when sending the same output as tmux. |
Also having this issue. |
Same issue. Glad to see it is already filed! For now, setting |
I have the same issue, and it happens in almost all of my tmux sessions. I have also tried switching to other terminal programs (PuTTY or Termius) and didn't encounter this problem, but I still think Windows Terminal is the best to use. |
Windows Terminal version (or Windows build number)
windows 10.0.183631743, terminal 1.10.1933.0 preview
Other Software
openSUSE tumbleweed 202108xx in virtual box
SSH for windows 8.1p1
tmux 3.2a
Z-Shell 5.8
Steps to reproduce
start the openSUSE VM, connect to it in windows terminal via ssh, and run
tmux
in windows terminal, you will see the^[[>0;10;1c;
as mentioned in tmux: #2844.I have tried PuTTY and MobaXterm 20, this issue seems only be reproduced in windows terminal. and the maintainer of tmux thought it's a bug/incorrect behavior from terminal, could you help to investigate this problem?
Expected Behavior
the
^[[>0;10;1c;
should not be printed on screen.Actual Behavior
the
^[[>0;10;1c;
printed on screen.The text was updated successfully, but these errors were encountered: