package notty

  1. Overview
  2. Docs
Declaring terminals

Install

dune-project
 Dependency

Authors

Maintainers

Sources

notty-0.2.3.tbz
sha256=74659fb14073db4438989891ab24f24bef81aa497dac16d9a67f9a1c9c200824
sha512=6e21d44fe39f3d80884b87635bebae55cb2b931ef74f9184ba4d74cc3e51cb0b3e976c3b6dc61d377288504e8bfabe21acdc1069eacb30df1fbf6686b80f7c6b

doc/notty/Notty/Render/index.html

Module Notty.RenderSource

Dump images to string buffers.

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

to_buffer buf cap (x, y) (w, h) i writes the string representation of i to buf, as interpreted by cap.

It renders the w * h rectangle of i, offset by (x, y) from the top left.

Sourceval pp : Cap.t -> Format.formatter -> image -> unit

pp cap ppf i renders i to the pretty-printer ppf.

Note pp is generally meant for development and debugging. It tries to be reasonable, but dedicated IO modules handle the actual output better.