einkbro icon indicating copy to clipboard operation
einkbro copied to clipboard

Blinking Cursors

Open MarjaE2 opened this issue 3 years ago • 4 comments

By default, Android enables blinking cursors. I have neuro issues where blinking cursors, other flashing, and other animation can screw with my eyesight and my brain.

I have found 2 solutions--

Either stop blinking cursors, or use white text on black backgrounds for the affected fields on e-ink screens.

I don't think Android allows apps to stop blinking cursors, and my device uses Android 8.1 so it can't use a system setting in Android 10+. An app setting would be helpful.

MarjaE2 avatar Jul 04 '21 23:07 MarjaE2

Hi, do you mean input text in web content? Did you find any Open Source browser that support disabling curosr blinking? If so, I could take a look at how it is imolemented. If not, I may not be able to help you on this issue.

plateaukao avatar Jul 05 '21 17:07 plateaukao

Firefox has an about:config setting: ui.caretBlinkTime

Android apps can use various options to hide the cursor, but these don't seem to support showing it without blinking it.

https://code2care.org/pages/android-edittext-cursor-disable

https://stackoverflow.com/questions/5582702/disable-edittext-blinking-cursor

MarjaE2 avatar Jul 05 '21 20:07 MarjaE2

  1. it looks like Firefox does not use Android's WebView component. It has its own implementation of content rendering, and the configuration of caretBlinkTime is implemented in C++ layer, which I don't know how it can be applied or implemented in Android built-in WebView.
  2. For links you provided, they are for Android EditText Views. As I found, on Hisense Eink device, and Onyx Boox device, system manufacturer already made it not blink. I checked the cursor when trying to input url in the bottom toolbar, it is already static.

plateaukao avatar Jul 06 '21 00:07 plateaukao

Welcome to send me a PR if you figured out how to do so. I tried the ui.careBlinkTime 0 on firefox nightly. It looks good. :)

plateaukao avatar Jul 06 '21 00:07 plateaukao

no way to do so for now. So close the ticket, and welcome pull request.

plateaukao avatar Sep 11 '22 18:09 plateaukao