hardcaml_waveterm

A terminal based digital waveform viewer for Hardcaml
IN THIS PACKAGE
type styler = {
start : ( Import.string -> Import.unit ) -> Import.unit;(*

called at start

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

called for each element

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

called at end of each line

*)
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