I could have sworn that there was once a setting for this in the gnome-terminal "Profile".
And then in some version of Ubuntu, that setting disappeared, and I had to use System ➜ Preferences ➜ Keyboard to uncheck "Cursor blinks in text fields".
Well, neither of those seems to be working now. So how do I make the cursor stop blinking?
You can disable the blinking also from the command line (gconf-editor is not installed by default):
For newer versions of gnome-terminal, the command has changed:
On Ubuntu Mate 20.04, the setting is at
org.mate.interface cursor-blink
. You can use dconf-editor to navigate there and set it tofalse
, orI review this post on almost every single Gnome install. Seems that the actual variable name changes every so often.
My solution:
gsettings list-recursively | grep blink
Then I set the link value from True to False. As of now, it is org.gnome.desktop.interface cursor-blink, so:
gsettings set org.gnome.desktop.interface cursor-blink false
Hope this helps someone else in the future!
You can send an escape sequence to the terminal (any POSIX compatible, I think) setting the current cursor character using
tput
:Just put whatever you prefer in your local runcom script:
~/.zshrc
,~/.bashrc
- whatever's your poison - or in the global one in/etc
if you wish for it to run for all users.With python3
I've discovered that the text printed is
\x1b[?25l
(with thel
of light).You can try :
so you can with try the others commands if you want the string format (I work with python, I don't know how this is called else).
The aventage with '\x1b' or '\33' is that we can use it with another device (per example a micropython) to regular the terminal with the STDOUT.