added xterm copy&paste patch