Kitty Graphics Protocol in OCaml
terminal graphics ocaml

imgid

+10
+3
lib/kgp.ml
··· 32 32 let to_string_tmux = Kgp_command.to_string_tmux 33 33 34 34 module Response = Kgp_response 35 + 36 + let next_image_id = Kgp_unicode.next_image_id 37 + 35 38 module Unicode_placeholder = Kgp_unicode 36 39 module Detect = Kgp_detect 37 40 module Tmux = Kgp_tmux
+7
lib/kgp.mli
··· 359 359 360 360 (** {1 Utilities} *) 361 361 362 + val next_image_id : unit -> int 363 + (** Generate a unique image ID suitable for use with all graphics commands. 364 + 365 + Returns a random ID with non-zero bytes in all positions, making it 366 + compatible with both regular display and Unicode placeholder modes. 367 + Uses [Random] internally. *) 368 + 362 369 module Unicode_placeholder = Kgp_unicode 363 370 module Detect = Kgp_detect 364 371