Use the linux TERM when using gnome-terminal.

Fix Home/End/Insert keybindings.