Just to note for others who might be trying this trick, it took me a bit of
trial and error, but the following process did the job:


1. Set values for both of the blink period keys. (This may or may not be
necessary but it can't hurt.)


$ defaults write -g NSTextInsertionPointBlinkPeriodOn 1000

$ defaults write -g NSTextInsertionPointBlinkPeriodOff 1000


2. Explicitly delete only the PeriodOff key (as I understood Stephen,
deleting only the PeriodOn key would also work):


$ defaults delete -g NSTextInsertionPointPeriodOff


3. Flush the prefs daemon:


$ killall cfprefsd


4. Restart LyX.


This will affect the cursor in all MacOS apps that use these keys, of
course.


-chris


On Sun, Jan 4, 2026 at 2:20 PM Tom Goldring <[email protected]> wrote:

> Yes it works -thanks so much !!
>
> On 1/3/26 1:00 PM, Stephan Witt wrote:
> > Am 03.01.2026 um 03:19 schrieb Tom Goldring <[email protected]>:
> >> Is there any way to turn it off in MacOS 15.7.3 or any other version? I
> find it intolerable. I tried the "Prefer non-blinking cursor" in my System
> Settings, but it doesn't work in LyX.
> > Hi Tom,
> >
> > LyX on Mac reads the defaults values NSTextInsertionPointBlinkPeriodOff
> and NSTextInsertionPointBlinkPeriodOn on startup.
> >
> > If only one of both values is set the cursor blink is disabled. If both
> are set the cursor blinks with a rate of the sum of these values (given in
> milliseconds).
> >
> > You may set them with the e.g. the following command in Terminal:
> >
> > defaults write -g NSTextInsertionPointBlinkPeriodOn 1000
> >
> > The system preference „non-blinking cursor“ is not supported yet. I
> don’t know how to read the user setting programmatically.
> >
> > BR Stephan
>
>
> --
> lyx-users mailing list
> [email protected]
> https://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to