TICKIT_TERM_GOTO(3)
π TICKIT_TERM_GOTO β the manual page, bestie edition π
okay so you found yourself in the TICKIT_TERM_GOTO(3) page of the Library Functions Manual and honestly? iconic. this is the one that teaches you how to scoot the terminal output cursor around like it's a little guy you're dragging across the screen. no cap. π¦
β¨ NAME β¨
tickit_term_goto, tickit_term_move β move the terminal output cursor. that's it, that's the job. π
πΈ SYNOPSIS πΈ
#include <tickit.h>
bool tickit_term_goto(TickitTerm *tt, int line, int col);
void tickit_term_move(TickitTerm *tt, int downward, int rightward);
Link with -ltickit. yes, you literally have to, don't skip it, the linker will be so dramatic about it. π«Ά
π DESCRIPTION π
so tickit_term_goto() moves the terminal output cursor to the absolute position you specified. absolute, like, "i have decided exactly where i want to be in life" energy. β¨
here's the lil catch though, and it's giving plot twist: on some terminals, either line or col can be passed as -1 to move within the line or column it is currently in. so like, "stay in this lane, just wiggle a bit." π
β οΈ not all terminals support this partial move ability! so you must check the return value of tickit_term_goto() after attempting a goto within the line or column, to see if it actually worked. if it didn't? the application has to reset the position using a fully-specified goto. no shortcuts, bestie, we go again. π
and then tickit_term_move() moves the terminal output cursor relative to its current position. like a lil hop instead of a teleport. π§
downwardcan be0if you don't want to move in that direction at allrightwardcan be0for the same reason β stay put, queen π
π RETURN VALUE π
tickit_term_goto()returns a boolean value indicating whether it was able to support the requested movement. sotrue= slay,false= the terminal said "not today." πtickit_term_move()returns no value. it's a void. it gives nothing and that's by design. π³οΈ
π₯ SEE ALSO π₯
go read those next, iykyk. π
and that's the whole page, bestie β this was TICKIT_TERM_GOTO(3) from the Library Functions Manual, and the footer agrees with me: TICKIT_TERM_GOTO(3). mwah, periodt. ππβ¨
π¦ 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