package notty

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

Convert images to string.

For use when you conclude that the output facilities are inadequate and that you want to take your business elsewhere.

val to_string : Cap.t -> (int * int) -> image -> string

to_string cap (w, h) i is the string describing the w * h top-left rectangle of i, as interpreted by cap. i is implicitly padded with void along the bottom and right edges.

val to_buffer : Buffer.t -> Cap.t -> (int * int) -> image -> unit

to_buffer buf cap (w, h) i renders i to a buffer. Otherwise behaves like to_string.

OCaml

Innovation. Community. Security.