logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tickit_renderbuffer_has_cursorpos, tickit_renderbuffer_get_cursorpos - query the virtual cursor position

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.

Name

       tickit_renderbuffer_has_cursorpos, tickit_renderbuffer_get_cursorpos - query the virtual cursor position

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)

                                                                            TICKIT_RENDERBUFFER_GET_CURSORPOS(3)

Synopsis

#include<tickit.h>booltickit_renderbuffer_has_cursorpos(constTickitRenderBuffer*rb);voidtickit_renderbuffer_get_cursorpos(constTickitRenderBuffer*rb,intlines,intcols);

       Link with -ltickit.

return

See Also