added xterm and gnome-terminal versions