TICKIT_RENDERBUFFER_ERASE_TO(3)
π TICKIT_RENDERBUFFER_ERASE π
okay bestie, so this is a page from the Library Functions Manual for the Tickit renderbuffer erase squad: tickit_renderbuffer_erase, tickit_renderbuffer_erase_to, and tickit_renderbuffer_erase_at. Three functions, one job: create erase regions. no cap. let's get into it π«Ά
β¨ NAME β¨
tickit_renderbuffer_erase, tickit_renderbuffer_erase_to, tickit_renderbuffer_erase_at β create erase regions π§
πΈ SYNOPSIS πΈ
#include <tickit.h>
void tickit_renderbuffer_erase(TickitRenderBuffer *rb,
int cols);
void tickit_renderbuffer_erase_to(TickitRenderBuffer *rb,
int col);
void tickit_renderbuffer_erase_at(TickitRenderBuffer *rb,
int line, int col, int cols);
Link with -ltickit.
π DESCRIPTION π
so tickit_renderbuffer_erase() is giving main character energy: it creates an erase region that starts right at the current virtual cursor position and keeps going for cols cells, all set to the current pen. periodt. β¨
tickit_renderbuffer_erase_to() is the flexible one β it creates an erase region that continues until the given column col, if the cursor was before that. but if the cursor was already after that column? yeah, it literally does nothing. no effect, we move on. π
and here's the thing β both of those functions will update the virtual cursor position. so like, they move the cursor, iykyk. π
then there's tickit_renderbuffer_erase_at(), which is lowkey the independent one. it creates an erase region at the given position (line, col) and length (cols). this function does not use or update the virtual cursor position. it's off doing its own thing, unbothered, moisturized, in its own lane. π
π RETURN VALUE π
these functions return nothing. that's it, that's the whole section. void behavior, void vibes. π
π₯ SEE ALSO π₯
tickit_renderbuffer_new(3)tickit_renderbuffer_blit(3)tickit_renderbuffer_flush_to_term(3)tickit_renderbuffer(7)tickit(7)
and that's the whole page, bestie π¦ mwah. this was TICKIT_REN...UFFER_ERASE(3) from the Library Functions Manual β literally iconic, go erase some regions responsibly πβ¨π
π¦ 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