add support for xterm, gnome-terminal and urxvt