package kittyimg

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

An OCaml implementation for the client-side terminal graphics protocol of the Kitty terminal emulator. See the protocol specification for more information.

val string_of_bytes_ba : (int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t -> string
type pixel_format = [
  1. | `RGB
  2. | `RGBA
  3. | `PNG
]
module Id : sig ... end
module Placement : sig ... end
type display_opts
val display_opts : ?placement:Placement.t -> ?x:int -> ?y:int -> ?w:int -> ?h:int -> ?xoff:int -> ?yoff:int -> ?cstretch:int -> ?rstretch:int -> ?move_cursor:bool -> ?zindex:int -> ?quiet:[ `Default | `OK | `Failure ] -> unit -> display_opts
type send_mode = [
  1. | `Display of display_opts
  2. | `Store of Id.t
]
val send_image : w:int -> h:int -> format:pixel_format -> ?quiet:[ `Default | `OK | `Failure ] -> ?mode:send_mode -> string -> unit
val display_image : ?opts:display_opts -> Id.t -> unit
type delete_action = [
  1. | `All
  2. | `Id of Id.t * Placement.t option
  3. | `Cursor
  4. | `Frames
  5. | `Cell of int * int
  6. | `CellZ of int * int * int
  7. | `Column of int
  8. | `Row of int
  9. | `Zindex of int
]
val delete_image : free:bool -> delete_action -> unit