TICKIT_TERM_EMIT_KEY(3)
π TICKIT_TERM_EMIT_KEY(3) π
okay bestie, welcome to the Library Functions Manual section for tickit_term_emit_key and tickit_term_emit_mouse β yes those are two whole functions in one page, we love a combo deal β¨
πΈ NAME πΈ
tickit_term_emit_key, tickit_term_emit_mouse β emit a fake key or mouse event π
like... you're just out here manifesting events that didn't actually happen. no cap.
π¦ SYNOPSIS π¦
#include <tickit.h>
void tickit_term_emit_key(TickitTerm *tt, TickitKeyEventInfo *info);
void tickit_term_emit_mouse(TickitTerm *tt, TickitMouseEventInfo *info);
Link with -ltickit.
do not forget the -ltickit bestie. i'm literally begging. the linker will be so dramatic about it π
β¨ DESCRIPTION β¨
so tickit_term_emit_key() invokes the event handler chain on the terminal instance β as if a key event had been received from the controlling terminal. periodt.
and tickit_term_emit_mouse() does the exact same lil ritual, invoking the event handler chain on the terminal instance, as if a mouse event had been received from the controlling terminal. ππ
In each case, the event handler chain runs with the usual semantics, okay? that means: each installed handler that has the appropriate bit set in its event type mask will be invoked β until one returns a true value. and the moment one of them does? that's it. game over. any remaining handlers after that will not get to see the event at all. they're in the group chat but they never got the message. π
so like, order matters, and whoever says "true" first is the main character. π
π SEE ALSO π
and that's the whole page bestie!! this was the TICKIT_TERM_EMIT_KEY(3) entry from the Library Functions Manual β go forth and fake-emit those events, you absolute icon π«Άππ·
π¦ 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