src/swipl-devel/packages/xpce/man/refmanual/md/text_cursor.md

class text_cursor {#class-text_cursor}

A text_cursor is used to visualise the editor <-caret in an editor object. Class text_cursor is closely linked to class editor and not meant to be used outside the context of editors.

The only interesting behaviour to the application programmer is:

| ->style | Change the `look` of the caret |
| ->image | Create custom caret.           |

Bugs:

The behaviour of this class is not complete. It performs satisfactory in the context of class editor, but is not very generic.

Instance variables {#class-text_cursor-instvars}

Send methods {#class-text_cursor-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.