Xterm need an optionnal compile switch. Vte (gnome-terminal, xfce-terminal etc..) has an unmerged patch.
It's fun to play around with