How to disable cursor blink rate in Mac OS X

A blinking cursor can be quite annoying (have you heard of the Chinese water torture?).

Unfortunately, if you are a Mac user, disabling the cursor blink rate does not go so straightforward as one might expect in Windows.

Now open a terminal. Type in the following command:

defaults write -g CursorBlink -string 0

which disables cursor blink on the global level (i.e. for every application).

As an alternative, we can optionally set the blink period to be a very, very large number. Note that the unit is milliseconds. So 1000 means 1 second. Thanks to this post.

defaults write -g NSTextInsertionPointBlinkPeriod -int 100000000

Now you have a non-blinking cursor in every application^^.