TICKIT_RENDERBUFFER_HAS_CURSORPOS(3)
β¨ TICKIT_REN...T_CURSORPOS(3) β¨
okay so bestie, welcome to the Library Functions Manual π this is page 3, it's giving tickit, and it's literally just two little functions that ask your render buffer where its pretend cursor is. no cap. let's get into it π«Ά
π NAME π
tickit_renderbuffer_has_cursorpos, tickit_renderbuffer_get_cursorpos β 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 πΈ
so. tickit_renderbuffer_has_cursorpos() is the vibe check π it returns a true value if the buffer's virtual cursor position has actually been set, by tickit_renderbuffer_goto(3). and it returns false if that position has never been set, or if it got cleared by tickit_renderbuffer_ungoto(3) or by tickit_renderbuffer_reset(3). that's it, that's the whole function, she's simple and I love her π
then there's tickit_renderbuffer_get_cursorpos(), which is the one that actually hands you the tea β she retrieves the current position of the virtual cursor by setting the integers pointed to by line and col, as long as they're not NULL. lowkey important: if the virtual cursor position is not set, then this function does nothing. like, absolutely nothing. no error, no drama, no note. she just sits there π§
π RETURN VALUE π
tickit_renderbuffer_has_cursorpos()returns a boolean β¨ (trueorfalse, bestie, that's the whole spectrum)tickit_renderbuffer_get_cursorpos()returns no value. it's giving void. it's giving "I do my work in silence" π
π SEE ALSO π
go read those, iykyk π
ok and for the record: tickit_renderbuffer_get_cursorpos() writing through pointers it was handed is exactly the kind of thing where you gotta make sure those ints are real, bestie. that's not a warning from the page, that's just me looking out for you π«Ά
and that's the whole page, periodt π
this lil writeup came straight outta the tickit Library Functions Manual, section 3, and it signs off exactly the way the original footer does: TICKIT_REN...T_CURSORPOS(3) π stay slay, keep your cursors virtual, mwah πβ¨
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms