TICKIT_TERM_GET_SIZE(3)
π TICKIT_TERM_GET_SIZE π
okay bestie, welcome to the tickit terminal-size management page π
this one is part of the Library Functions Manual, and it's literally all about three lil functions: tickit_term_get_size, tickit_term_set_size, and tickit_term_refresh_size π
β¨ NAME β¨
tickit_term_get_size, tickit_term_set_size, tickit_term_refresh_size β manage terminal size π¦
πΈ SYNOPSIS πΈ
#include <tickit.h>
void tickit_term_get_size(TickitTerm *tt, int *lines, int *cols);
void tickit_term_set_size(TickitTerm *tt, int lines, int cols);
void tickit_term_refresh_size(TickitTerm *tt);
Link with -ltickit.
π DESCRIPTION π
so here's the tea β these three functions are the whole size-management squad, and each one does its own lil thing:
tickit_term_get_size()β fetches the currently-known size of the terminal and drops it into the two integers you hand it via pointers. that's it, that's the function π«Άtickit_term_set_size()β stores a new size for the terminal into the instance, and invokes anyTICKIT_EV_RESIZEevent handlers. not me setting the size and triggering a whole event π iconic behaviour fr fr.tickit_term_refresh_size()β queries the size of the terminal by using theTIOCGWINSZioctl(2)call on the currently-associated output filehandle, and invokes anyTICKIT_EV_RESIZEevent handlers if the size has changed. lowkey the main character of the trio, going out and actually asking the terminal what's up π
π« RETURN VALUE π«
tickit_term_get_size, tickit_term_set_size and tickit_term_refresh_size return no value. nothing. void. silence. they just do the thing and dip π
π SEE ALSO π
and that's the whole page, bestie!! this was TICKIT_TERM_GET_SIZE(3) from the Library Functions Manual β that's the version/source vibe and the date-energy right there, folded into this cute lil sign-off instead of a boring footer line πβ¨ slay, go resize something responsibly, 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