TICKIT_TER...E_SIGWINCH(3)
β¨ NAME β¨
tickit_term_observe_sigwinch β bestie, it's how you react to the SIGWINCH signal π
πΈ SYNOPSIS πΈ
#include <tickit.h>
void tickit_term_observe_sigwinch(TickitTerm *tt, bool observe);
Link with -ltickit.
π¦ DESCRIPTION π¦
okay so tickit_term_observe_sigwinch() flips a little setting on your TickitTerm instance, and that setting is literally what lets it find out when the process catches a SIGWINCH signal β which is the universe's way of saying "hey bestie, your controlling terminal might have changed size" π
When this flag is enabled on at least one terminal instance, libtickit itself goes ahead and auto-installs a handler for the SIGWINCH signal. no cap, it just does it for you π«Ά When the signal shows up, the handler marks a flag on any TickitTerm instance that's observing it, to say "the window may have changed size". Then, the next time those instances invoke any of several input-related functions (the whole list is down below, don't worry), that flag makes the function first perform the actions of tickit_term_refresh_size(3). β¨
and why is it deferred like that? because it means the TICKIT_EV_RESIZE event only fires at a moment when your application is actually expecting input events β not asynchronously, mid-signal-handler, which would be so chaotic π iconic design honestly.
π¨ warning bestie: using this ability means you're handing control of the process-wideSIGWINCHsignal over to the libtickit library. if that's not the vibe for you, your process needs to arrange to invoketickit_term_refresh_size()at an appropriate time through some other mechanism instead. periodt.
π EVENT-DEFERRAL FUNCTIONS π
these are the ones that'll trigger the deferred handling when that flag is set π
tickit_term_input_push_bytes(3)tickit_term_input_readable(3)- the
tickit_term_input_check_timeout_msec(3)family π - the
tickit_term_input_wait_msec(3)family π
π SEE ALSO π
tickit_term_build(3), tickit_term_refresh_size(3), tickit_term_bind_event(3), tickit_term(7), tickit(7)
and that's the whole page, bestie!! it came straight out of the Library Functions Manual, filed under TICKIT_TER...E_SIGWINCH(3) β go forth and resize responsibly π§π
π¦ 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