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
[Bug]:The terminal returns a strange string #221
Comments
I fixed it, and released v0.12.0. |
I still have this issue using v0.12.0 over SSH. In my case, it happens with any procs command such as
Not sure if it has something to do with my setup or not. Tried different terminal emulators (kitty, xfce terminal) and shells (zsh, bash), but same results. |
@Saduff Could you provide the information about your SSH server / client and OS? I can't reproduce it. |
Client and server are both running Arch Linux. Client is running kernel 5.16.2, server is running 5.14.12. Both client and server are running OpenSSH 8.8p1, procs is installed from the Arch repo. Thought it might have something to do with SSH multiplexing on the client-side as I have that turned on with this config:
But disabling that made no difference. I also had X11 forwarding turned on with I could not reproduce it by SSHing into an archlinux docker container running locally. However, the issue is there when running procs inside the docker container on the server (over SSH). To be clear, the SSH connection is between my local machine and the server and then I simply ran procs inside the container. |
How about more information about the docker container?
|
I tried the same way and could not reproduce it on my local machine, only on the remote server. On the server, the issue is there in the docker container as well when I run:
I found that the rgb string is printed to stderr, so I can suppress it like this and then everything is fine:
What's weird is when I redirect it to a file, the file is empty:
I wish I had a way to reproduce it on my local machine, but I don't. |
The |
Okay, it definitely has something to do with my terminal emulator. I tried lots of different terminal emulators:
✔️ denotes there's no issue (rgb string is not printed) None have the issue on my local machine, only when SSH'ed to the remote server. |
Okay, I found a way to reproduce it locally. It seems the issue has to do with network delay. The remote server is located far away so the latency is around 186 ms. Steps to reproduce: docker run --rm -it archlinux
# inside docker:
pacman -Sy openssh procs
ssh-keygen -A
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
passwd # change root password
/bin/sshd Now, on docker host: ssh root@172.17.0.2 # change container IP if necessary
procs # should be fine Now, let's introduce a 200 ms network delay by running this on the docker host: tc qdisc add dev docker0 root netem delay 200ms # run as root or with sudo
# verify that delay was added:
ping 172.17.0.2
PING 172.17.0.2 (172.17.0.2) 56(84) bytes of data.
64 bytes from 172.17.0.2: icmp_seq=1 ttl=64 time=200 ms Now run procs in the other window again and the rgb string should be displayed. Since I found that it depends on the terminal emulator as well, pick one from above with the red dot. I used kitty personally. Finally, to remove the delay: tc qdisc delete dev docker0 root netem delay 200ms # run as root or with sudo And when running procs again in the other window, it should be fine again. |
Thank you for your investigation. |
Could you try 83305be ? |
Seems to be fixed with that. Thanks for the quick fix and for this awesome project. 🙂 |
Command execution:
procs | procs
The terminal returns:
11;rgb:0e0e/1010/1919
Screenshot:
The text was updated successfully, but these errors were encountered: