code-server
code-server copied to clipboard
restored terminal from browser reload may append 2R0;276;0c some times
OS/Web Information
- Web Browser: Chrome
- Local OS: MacOS 10.15
- Remote OS: Debian9
- Remote Architecture: x64
-
code-server --version
: 3.10.2
Steps to Reproduce
- Open Terminal
- Run some random commands
- Reload Tab, wait for terminal restore
- The restored terminal may append
2R0;276;0c
some times.
Expected
Terminal should keep as is when restored after a reload
Actual
Sometimes there's some chars appeared in terminal.
Screenshot
Notes
This issue can be reproduced in VS Code:No
Also observed that the chars will be appended continually in many terminals(even it's not in front focus) for every time tab refreshing, as below image:
Above image is a hidden terminal not in front, after switched into it, found above image.
When using dash
as shell, the extra chars will be below:
Bump, I've noticed this (within the Coder product)
Have you solved it? I have a similar problem in the form of characters [%]
Just facing the same issue with code-server version 3.10.2, envirionment infomation on my side list below:
OS/Web Information
- Web Browser: Chrome
- Local OS: Windows 10
- Remote OS: SUSE Linux Enterprise Server 12 SP5(Docker container)
- Remote Architecture: x64
- code-server --version: 3.10.2
Steps to Reproduce
- Open Terminal(tried bash, zsh)
- Run any commands with output
- Leave it alone for a while(about 10 minutes)
- Reload window, wait for terminal restore
- The restored terminal may append 2R0;276;0c some times.
This issue also happends on other code-server instances with different shell configs and environment variables, so I don't think it's a env specified issue.
Hi @vapurrmaid , it's there any suggestion for this issue? I found something relevant which points out that some extra may need be done with xterm.js:
- https://github.com/sagemathinc/cocalc/issues/1269
- https://github.com/sagemathinc/cocalc/issues/3277
But I'm not sure what code-server can do on this scenario, could you please take a look and confirm, thanks.
Any solutions to this? Not a super problematic issue to go up a line and erase the previous command, but it's quite annoying.
@scottmudge what version of code-server are you using? And can you reproduce it in Codespaces or Gitpod?
code-server: 3.10.2 vs code: 1.56.1
Unfortunately I am just a user of this deployment and do not admin rights to upgrade or deploy different services. Was hoping there might be a way to correct the issue from a configuration/user-space side of things.
Hmm...that's pretty old. You might be able to play with terminal GPU rendering or something in the VS Code settings. I'm not sure what else would work unfortunately 😢
This happens, if the recorded terminal data contains requests, which the terminal will respond to (here DA2).
To fix that - replay first on the new terminal, then connect to the PTY. This way the responses get not sent again to the PTY.
This happens, if the recorded terminal data contains requests, which the terminal will respond to (here DA2).
To fix that - replay first on the new terminal, then connect to the PTY. This way the responses get not sent again to the PTY.
Have you solved it? How to do it? Looking forward to your reply
No I have not solved it, as I dont had the issue. I've posted here, because we got a similar question in the xterm.js repo.
We are closing out old issues, but let me know if this is still an issue. It seems unlikely to be in code-server though, all the replay logic is in VS Code core.