Ubuntu – How to make gnome-terminal cursor green

cursorcustomizationgnome-terminal

I have customized my Terminal look a great deal now, and to add the finishing touches I wish to make my gnome-terminal cursor green (it is currently white), however there appears no way to do this in the settings GUI, so how could one achieve this? I am running Ubuntu GNOME 15.04 with GNOME 3.16.

Information Update:

This is the current look of my Terminal:

GNOME Terminal

And I have configured this with:

PS1='${debian_chroot:+($debian_chroot)}\[\033[00;37m\][\[\033[00;32m\]\t\[\033[00;37m\]] \[\033[01;34m\]\u\[\033[00;37m\]@\[\033[01;34m\]\h\[\033[00;37m\]:\[\033[01;34m\]\w\[\033[01;32m\]$ '

In .bashrc.

Best Answer

Following command will change terminal cursor to green:

echo -e "\e]12;green\a"

Above command will print extra new line. If no new line required:

echo -ne "\e]12;green\a"

For permanent changes put above command in .bashrc file.

Further if you want to make your cursor visible or invisible:

tput cnorm  # make cursor invisible
tput civis  # make cursor visible

More information can be found at following link:

How do I change the color of current cursor position indicator?