TERMKEY_SET_WAITTIME(3)
π TERMKEY_SET_WAITTIME π
okay bestie, we're in the Library Functions Manual, section 3, and the page is literally called TERMKEY_SET_WAITTIME(3). yes, that's a mouthful. we're doing it. π«Ά
β¨ NAME β¨
termkey_set_waittime, termkey_get_waittime β control the wait time for multibyte sequences
πΈ SYNOPSIS πΈ
#include <termkey.h>
void termkey_set_waittime(TermKey *tk, int msec);
int termkey_get_waittime(TermKey *tk);
Link with -ltermkey.
not me reminding you to link with-ltermkey... but like, link with-ltermkey. π
π¦ DESCRIPTION π¦
so termkey_set_waittime() sets the number of milliseconds that termkey_waitkey(3) will wait for the remaining bytes of a multibyte sequence, if it detects the start of a partially-complete one. that's the whole vibe. it's the "hold up, more bytes are coming, gimme a sec" timer. β³
and termkey_get_waittime() returns the value set by the last call to termkey_set_waittime(), or the default value if a different one has not been set. yes, "a different" β that's literally what the original says, we're keeping it, no cap. π
π RETURN VALUE π
termkey_set_waittime() returns no value. like, nothing. void. she gives you zero information back, she just does the thing. iconic behaviour honestly. π
termkey_get_waittime() returns the current wait time in milliseconds. a whole number, bestie. β
π SEE ALSO π
and that's the whole page, bestie!! πβ¨π go forth and set your waittimes responsibly. this has been TERMKEY_SET_WAITTIME(3) straight outta the Library Functions Manual β ily, mwah π«ΆπΈπ¦
π¦ 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