added cursor support for gnome-terminal, switches cursor during insert mode to make it clearer