Library
Module
Module type
Parameter
Class
Class type
Terminal IO with concurrency.
For more info, see Notty_unix.Term
.
val create :
?dispose:bool ->
?nosig:bool ->
?mouse:bool ->
?bpaste:bool ->
?input:Lwt_unix.file_descr ->
?output:Lwt_unix.file_descr ->
unit ->
t
create ~dispose ~nosig ~mouse ~input ~output ()
creates a new terminal.
Note ~dispose
arranges for the terminal to be disposed of at the end of the Lwt
main loop, and not at process exit.
val image : t -> Notty.image -> unit Lwt.t
val events : t -> [ Notty.Unescape.event | `Resize of int * int ] Lwt_stream.t
val size : t -> int * int
val fds : t -> Lwt_unix.file_descr * Lwt_unix.file_descr
Creating a terminal will install a SIGWINCH
handler. The handler should not be replaced directly. This API allows the user to monitor deliveries of the signal.
val winch : unit -> unit Lwt.t
winch ()
is a thread completing after the next SIGWINCH
. A single signal delivery will cause the completion of all waiting winch
threads.