TICKIT_TER...ARTED_MSEC(3)
π TICKIT_TER...ARTED_MSEC(3) π
okay bestie, so this one lives in the Library Functions Manual, and the name is lowkey a whole mouthful: tickit_term_await_started_* β the vibe is wait until the terminal is initialised β¨
πΈ SYNOPSIS πΈ
#include <tickit.h>
void tickit_term_await_started_msec(TickitTerm *tt, longmsec);
void tickit_term_await_started_tv(TickitTerm *tt, const struct timeval *timeout);
and when you build it, you link with -ltickit π«Ά
β¨ DESCRIPTION β¨
so the tickit_term_await_started_*() family of functions just... sits there and waits π
like, it waits until the terminal driver is like "okay girl, I'm done setting up the terminal, it's ready to be used." and then you can go.
the timeout is the maximum time to wait β because bestie, we are not waiting forever. the function will return after that time even if the terminal is not ready yet. no cap. you should call one of these after the relevant input and output methods have been set on the terminal instance. periodt.
the two functions differ in how you specify the timeout:
tickit_term_await_started_msec()β takes the time as an integer in milliseconds, or-1to wait indefinitely πtickit_term_await_started_tv()β takes the time as astruct timeval, orNULLto wait indefinitely
now here's the tea β β under most terminal drivers it's not strictly required that everything be completely prepared before it's used, because preparation is mainly about detecting optionally-supported features the terminal may or may not have. so if your application starts outputting before that's finished, it just... might not use some features, or might not detect or report that some features are present. no big deal, just a lil slay gap π¦
π RETURN VALUE π
tickit_term_await_started_msec() and tickit_term_await_started_tv() return no value. literally nothing. they're giving void energy, and honestly? iconic π
π SEE ALSO π
and that's the whole page bestie!! π this one's from the Library Functions Manual, courtesy of the tickit library β TICKIT_TER...ARTED_MSEC(3) β go forth and await your terminal with main character energy πβπ§
π¦ 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