Kitty Graphics Protocol in OCaml
terminal graphics ocaml
1(*--------------------------------------------------------------------------- 2 Copyright (c) 2025 Anil Madhavapeddy. All rights reserved. 3 SPDX-License-Identifier: ISC 4 ---------------------------------------------------------------------------*) 5 6(** Kitty Graphics Protocol Detection 7 8 Detect terminal graphics support capabilities. *) 9 10val make_query : unit -> string 11(** Generate a query command to test graphics support. *) 12 13val supports_graphics : Kgp_response.t option -> da1_received:bool -> bool 14(** Determine if graphics are supported based on query results. *)