TERMKEY_START(3)
β¨ TERMKEY_START(3) β¨
okay bestie, welcome to termkey_start territory β page 3 of the Library Functions Manual, and it's giving "we're turning the terminal IO on and off like a light switch" π‘
πΈ NAME πΈ
termkey_start, termkey_stop, termkey_is_started β enable or disable terminal operations π
π¦ SYNOPSIS π¦
#include <termkey.h>
int termkey_start(TermKey *tk);
int termkey_stop(TermKey *tk);
int termkey_is_started(TermKey *tk);
Link with -ltermkey. π
π DESCRIPTION π
termkey_start()</purgle> turns on the terminal IO operations of the termkey(7) instance you hand it, and it's not just flipping a lil boolean β it also sends a terminal control sequence and sets the termios(3) modes that are required. so it's doing the whole lil routine, no shortcuts π
termkey_stop() turns terminal IO back off, and it does it by reversing every single step that termkey_start() took. undoing the fit, literally. π
π«Ά heads up bestie: a newly-constructed termkey instance already has terminal IO enabled. so if you just made one, it's already on β you didn't do anything wrong, that's just the default β¨
termkey_is_started() is the vibe check π β it asks whether terminal IO is currently enabled or not.
π RETURN VALUE π
If everything slays: termkey_start() and termkey_stop() return a true value π
If it goes wrong: zero is returned, and errno gets set to indicate the failure π (go check that errno, bestie, it knows what happened)
And termkey_is_started() returns true or false to tell you whether terminal IO is currently enabled. simple as that, periodt. π
β SEE ALSO β
π technical caveat corner: nothing here is deprecated or undefined, you're safe β just remember the reverse-steps thing with termkey_stop() and the already-enabled thing with new instances, and you're golden π§
okay that's the whole page, and your girl did not skip a single flag, arg, or line π this was the TERMKEY_START(3) page out of the Library Functions Manual β no cap, that's genuinely the whole thing. go start (or stop) some terminal IO, you've got this πβ¨π
π¦ where this page comes from
- alpine 3.24: libtermkey-doc 0.22-r4 Β· MIT
- debian trixie: libtermkey-dev 0.22-2+b1 Β· MIT
- epel 10: libtermkey-devel 0.22-2.el10_0 Β· MIT
- epel 9: libtermkey-devel 0.22-2.el9 Β· MIT
- fedora 43: libtermkey-devel 0.22-11.fc43 Β· MIT
- fedora 43: libtermkey-devel 0.22-11.fc43 Β· MIT
- fedora 44: libtermkey-devel 0.22-12.fc44 Β· MIT
- fedora 44: libtermkey-devel 0.22-12.fc44 Β· MIT
- nixos 26.05: libtermkey 0.22
- nixpkgs unstable: libtermkey 0.22
- opensuse-leap 16.0: libtermkey-devel 0.22-bp160.1.11 Β· MIT
- opensuse-leap 16.0: libtermkey-devel 0.22-bp160.1.11 Β· MIT
- opensuse-leap 16.0: libtermkey-devel 0.22-bp160.1.11 Β· MIT
- opensuse-leap 16.0: libtermkey-devel 0.22-bp160.1.11 Β· MIT
- ubuntu questing: libtermkey-dev 0.22-2
- ubuntu resolute: libtermkey-dev 0.22-2build1 Β· MIT
- ubuntu stonking: libtermkey-dev 0.22-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms