TICKIT_TERM_SCROLLRECT(3)
π TICKIT_TERM_SCROLLRECT π
okay bestie so we're in the Library Functions Manual today, and the star of the show is tickit_term_scrollrect β she scrolls a region of the terminal. yes literally just that. and she's iconic for it. π«Ά
β¨ NAME β¨
tickit_term_scrollrect β scroll a region of the terminal π
π SYNOPSIS π
#include <tickit.h>
bool tickit_term_scrollrect(TickitTerm *tt, TickitRect rect,
int downward, int rightward);
Link with -ltickit.
πΈ DESCRIPTION πΈ
so tickit_term_scrollrect() tries to scroll a rectangular region of the terminal by a given offset β the whole point is it moves content within the display efficiently, like a glow-up for your screen content, no full redraw needed. β¨
but here's the tea π΅ β whether or not that's actually possible depends on the type of terminal and on what region and offset you specified. it's giving "results may vary".
- if it works β the function returns a true value π
- if it can't be done β it returns
falseand, important, it does not modify the terminal at all. no half-scrolled mess, no chaos.
in that fail case, your application has to fall back to re-drawing the affected region with new content. no shortcuts, bestie. you're on your own for that one π
β RETURN VALUE β
tickit_term_scrollrect() returns a boolean indicating if the scrolling operation was successful. true = slay, it scrolled. false = it didn't, and nothing changed. π
π¦ SEE ALSO π¦
tickit_term_build(3)tickit_term_goto(3)tickit_term_print(3)tickit_term_setpen(3)tickit_term_chpen(3)tickit_term(7)tickit(7)
ok that's the whole page, no cap π§ we came in under the Library Functions Manual banner and we're leaving the same way β this was TICKIT_TERM_SCROLLRECT(3), source and version and all, signed off with love. go scroll something pretty ππΈ
π¦ 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