Keyboard stops responding when using gnome-terminal