package hardcaml_waveterm

  1. Overview
  2. Docs
type styler = {
  1. start : (Base.String.t -> Base.Unit.t) -> Base.Unit.t;
    (*

    called at start

    *)
  2. set : (Base.String.t -> Base.Unit.t) -> Draw.Style.t -> Base.Unit.t;
    (*

    called for each element

    *)
  3. eol : (Base.String.t -> Base.Unit.t) -> Base.Unit.t;
    (*

    called at end of each line

    *)
  4. finish : (Base.String.t -> Base.Unit.t) -> Base.Unit.t;
    (*

    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 : Base.String.t

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 -> (Base.String.t -> Base.Unit.t) -> Draw.In_memory.ctx -> Base.Unit.t

write data as html escape code

write data as utf-8

OCaml

Innovation. Community. Security.