package notty-community
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=b8cb51edb37d28d9d53e98ac52848677
sha512=8922a190a412790285603ba7ab37f9f58202d9406ebc9e6d3329189eac7fda5c25316264c27b6f7decb8f25f0d78801873b9f16c40e90f020e2c06ab9d058686
doc/notty-community.unix/Notty_unix/Term/Winch/index.html
Module Term.Winch
Source
Manual SIGWINCH
handling.
Unix delivers notifications about tty size changes through the SIGWINCH
signal. A handler for this signal is installed as soon as a new terminal is created. Replacing the global SIGWINCH
handler using the Sys
module will cause this module to malfunction, as the size change notifications will no longer be delivered.
You might still want to ignore resizes reported by event
and directly listen to SIGWINCH
. This module allows installing such listeners without conflicting with the rest of the machinery.
add fd f
registers a SIGWINCH
handler. Every time the signal is delivered, f
is called with the current size of the tty backing fd
. If fd
is not a tty, f
is never called.
Return value is a function that removes the handler f
.
Handlers are called in an unspecified order.