TICKIT_NEW_STDIO(3)
π TICKIT_NEW_STDIO(3) π
okay bestie, so this is a page from the Library Functions Manual and it's literally all about making a brand new toplevel Tickit instance. two whole functions, both absolute icons. let's get into it π«Ά
β¨ NAME β¨
tickit_new_stdio β create a new toplevel Tickit instance π
πΈ SYNOPSIS πΈ
#include <tickit.h>
Tickit *tickit_new_stdio(void);
Tickit *tickit_new_stdtty(void);
Link with -ltickit.
π¦ DESCRIPTION π¦
so tickit_new_stdio() makes you a shiny new toplevel Tickit instance, and its terminal is attached to the standard input and output streams. that's it, that's the vibe. π
then there's tickit_new_stdtty(), which also makes a toplevel Tickit instance, but this one attaches its terminal to the first terminal it finds among the standard input, output and error streams. the way that this just gives you better results if the program containing it is likely to get invoked with shell redirection on either input or output β like, think less energy. that's the whole point. no cap. β¨
ngl the refcount thing matters so listen up: the reference count of a newly-constructed toplevel instance will be one. you can bump it up or down withtickit_ref(3)andtickit_unref(3). and the second its reference count hits zero? it's destroyed. gone. periodt. π
π RETURN VALUE π
if it worked, tickit_new_stdio() and tickit_new_stdtty() both return a pointer to the new instance. slay. π
π SEE ALSO π
and that's the whole page bestie, no notes π it lives in the Library Functions Manual, and the footer at the bottom is just TICKIT_NEW_STDIO(3) echoing the name back at you β no date, no version, just vibes. stay iconic, go build something cute πΈπ¦π
π¦ 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