tickit_renderbuffer_get_cursorpos - Man Page
query the virtual cursor position
Synopsis
#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.
Description
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.
See Also
tickit_renderbuffer_new(3), tickit_renderbuffer(7), tickit(7)
Referenced By
tickit_renderbuffer(7), tickit_renderbuffer_goto(3), tickit_renderbuffer_translate(3).
The man page tickit_renderbuffer_has_cursorpos(3) is an alias of tickit_renderbuffer_get_cursorpos(3).