tickit_renderbuffer_get_cursorpos(3)

tickit_renderbuffer_get_cursorpos3

Query the virtual cursor position

Usage

#include <tickit.h>

bool tickit_renderbuffer_has_cursorpos(const TickitRenderBuffer *rb);
void tickit_renderbuffer_get_cursorpos(const TickitRenderBuffer *rb, int lines, int cols);

Link with -ltickit.

Overview

tickit_renderbuffer_has_cursorpos() returns a true value if the buffer's virtual cursor position has been set by tickit_renderbuffer_goto(3), or false if it has never been set, or was cleared by tickit_renderbuffer_ungoto(3) or tickit_renderbuffer_reset(3).

tickit_renderbuffer_get_cursorpos() retrieves the current position of the virtual cursor, by setting the integers pointed to by line and col, if not NULL. If the virtual cursor position is not set then this function does nothing.

Return value

tickit_renderbuffer_has_cursorpos() returns a boolean. tickit_renderbuffer_get_cursorpos() returns no value.

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

From libtickit-dev 0.4.3-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.