package hardcaml_waveterm

  1. Overview
  2. Docs
type styler = {
  1. start : (Import.string -> Import.unit) -> Import.unit;
    (*

    called at start

    *)
  2. set : (Import.string -> Import.unit) -> Draw.Style.t -> Import.unit;
    (*

    called for each element

    *)
  3. eol : (Import.string -> Import.unit) -> Import.unit;
    (*

    called at end of each line

    *)
  4. finish : (Import.string -> Import.unit) -> Import.unit;
    (*

    called at end

    *)
}

stylting functions

val no_styler : styler

not styling information inserted

val html_styler : styler

Inline CSS per span element

val css_class_styler : styler

CSS specified with classes

val css_classes : Import.string

CSS classes for css_class_styler. Dump in CSS file or style tag.

val term_styler : styler

ANSI termianl escape codes

val html_escape : ?styler:styler -> (Import.string -> Import.unit) -> Draw.In_memory.ctx -> Import.unit

write data as html escape code

write data as utf-8

OCaml

Innovation. Community. Security.