Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Nottui_lwt exposes an Lwt-driven mainloop.
UI execution is done in an Lwt thread and UI events can spawn and synchronize threads.
type event = [
| `Key of Notty.Unescape.key
| `Mouse of Notty.Unescape.mouse
| `Paste of Notty.Unescape.paste
| `Resize of int * int
]
FIXME: Refactor to use Nottui.Ui.event
?
val render :
?quit:unit Lwt.t ->
size:(int * int) ->
event Lwt_stream.t ->
Nottui.ui Lwd.t ->
Notty.image Lwt_stream.t
Turn a stream of events into a stream of images.