xterm: smarter highligthing of selection