Skip to content
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

starting tmux or doing tmux attach generates input buffer garbage only under urxvt #3470

Closed
idallen opened this issue Feb 10, 2023 · 5 comments

Comments

@idallen
Copy link

idallen commented Feb 10, 2023

Issue description

When starting tmux or doing a tmux attach under urxvt, a line of garbage appears in the input buffer:

$ TERM=xterm SHELL=/bin/sh tmux -vv -Ltest -f/dev/null new
$ ^[]10;rgb:0000/0000/0000^[^[]11;rgb:ff00/ff00/dd00^[

The garbage does not appear when starting tmux or doing the attach from inside of gnome-terminal or xterm.
The same urxvt garbage appears when I set TERM to any of xterm, rxvt-unicode-256color, or xterm.
I can get rid of the input buffer garbage using either backspaces or line-erase (CTRL-U).

Required information

This is the February 7 tmux version next-3.4 patched with the recent zero-width patch.
(The zero-width patch did not cause this; it was happening before the patch.)
This "next-3.4" clone is newer than the previous "next-3.4" I cloned last June.
The one from last June works fine. The newer clone (from February 7) does not.

$ uname -sp && tmux -V && echo $TERM
Linux x86_64
tmux next-3.4
tmux-256color
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

tmux-out-1089532.log
tmux-server-1089532.log
tmux-client-1089530.log

@nicm
Copy link
Member

nicm commented Feb 10, 2023

This is a bug in urxvt.

@nicm
Copy link
Member

nicm commented Feb 10, 2023

You can make this change to urxvt:

https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/x11/rxvt-unicode/patches/patch-src_command_C?rev=1.6&content-type=text/plain

@idallen
Copy link
Author

idallen commented Feb 10, 2023

This is a bug in urxvt.

Indeed it is. How did you know where to find the fix?
Are you watching the bug lists of all the world's terminal emulators? :-)

Building urxvt from source required not only the source here https://github.com/exg/rxvt-unicode
but also libraries http://dist.schmorp.de/libev/ and http://dist.schmorp.de/libptytty/
Then the patch can be applied and a new version compiled and installed. It works!

Closed.

@idallen idallen closed this as completed Feb 10, 2023
@nicm
Copy link
Member

nicm commented Feb 10, 2023

Someone else already reported it to me :-).

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants