How to disable text cursor?

Asked

Viewed 147 times

0

I have a project in Gtk, which uses a Gtk.Entry text input and I need to disable the text cursor, or make it invisible. How can I do this? Or if I can’t, you can disable the linux system cursor?

1 answer

1


I don’t know if it’s possible -

In the documentation there is no method related to this. And although GTK3+ supports CSS style configuration, some attempts I made here did not modify the cursor.

In particular, I tried to select the cursor with the class ". Insert-cursor" and varies scombinations between element name and class name between "courses-Handle" and "Insert-cursor", as the tips here: https://developer.gnome.org/gtk3/stable/GtkEntry.html#gtk-entry-get-cursor-hadjustment

To change the CSS I tried to use the global CSS of the application, just modifying the proof of concept I made for this answer here: Why source is not changed in Raspberry Pi?

I couldn’t even change the color - if the color worked, then I would try to set the "opacity" to 0, given that "display" and "width" do not work anyway (it gives error and to the program when parsing the CSS)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.