Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val handle_csi_key : 'a -> t
val handle_csi : (module Input_source.t) -> t
handle_csi ()
handles the case where we have a control sequence introducer.
This function decides what to do next based on the next key read from the input source.
val next_event : (module Input_source.t) -> t option
next_event ()
reads the next key event from the input source.
This function reads from the input source and returns a key event if it finds one. If it doesn't find a key event, it returns None.
events read from the input source (e.g. stdin) are then converted into key events that can be used by the application.
val poll : unit -> t Event.channel
poll ()
returns a channel that will be populated with key events as they are read from the input source. (e.g. stdin)
This function spawns a new thead that will read from the input source to avoid blocking the main thread.