While playing around with combination of rxvt-unicode and tmux and mapping tmux's select-window to Meta-n (n=0..9) I realized that Meta-2 wasn't working correctly. It had to pressed twice, sometimes not reacting at all. Meta-1 and Meta-3 to Meta-0 worked as expected. A quick search revealed it to be a bug in the terminfo entry of rxvt-unicode. See the debian bug #446444 for a better explanation. Reproducible: Always To fix this locally run: infocmp rxvt-unicode|sed -e 's/kIC=\\E2$,/kIC=\\E[2$,/g' > /tmp/ti sudo tic /tmp/ti rm /tmp/ti
The same problem exists in the terminfo entry of rxvt-unicode-256color.
fixed in ncurses/ncurses-5.9-r2 thanks :)