Gtk.TextView.prototype.set_cursor_visible

function set_cursor_visible(setting:Boolean):void {
    // Gjs wrapper for gtk_text_view_set_cursor_visible()
}

Toggles whether the insertion point is displayed. A buffer with no editable text probably shouldn't have a visible cursor, so you may want to turn the cursor off.

setting

whether to show the insertion cursor