Kitty Graphics Protocol in OCaml
terminal graphics ocaml

imgid

Changed files
+10
lib
+3
lib/kgp.ml
···
let to_string_tmux = Kgp_command.to_string_tmux
module Response = Kgp_response
+
+
let next_image_id = Kgp_unicode.next_image_id
+
module Unicode_placeholder = Kgp_unicode
module Detect = Kgp_detect
module Tmux = Kgp_tmux
+7
lib/kgp.mli
···
(** {1 Utilities} *)
+
val next_image_id : unit -> int
+
(** Generate a unique image ID suitable for use with all graphics commands.
+
+
Returns a random ID with non-zero bytes in all positions, making it
+
compatible with both regular display and Unicode placeholder modes.
+
Uses [Random] internally. *)
+
module Unicode_placeholder = Kgp_unicode
module Detect = Kgp_detect