Module Hardcaml_waveterm__.Write
type styler
=
{
start : (Hardcaml_waveterm__.Import.string -> Hardcaml_waveterm__.Import.unit) -> Hardcaml_waveterm__.Import.unit;
called at start
set : (Hardcaml_waveterm__.Import.string -> Hardcaml_waveterm__.Import.unit) -> Hardcaml_waveterm.Draw.Style.t -> Hardcaml_waveterm__.Import.unit;
called for each element
eol : (Hardcaml_waveterm__.Import.string -> Hardcaml_waveterm__.Import.unit) -> Hardcaml_waveterm__.Import.unit;
called at end of each line
finish : (Hardcaml_waveterm__.Import.string -> Hardcaml_waveterm__.Import.unit) -> Hardcaml_waveterm__.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 : Hardcaml_waveterm__.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 -> (Hardcaml_waveterm__.Import.string -> Hardcaml_waveterm__.Import.unit) -> Hardcaml_waveterm.Draw.In_memory.ctx -> Hardcaml_waveterm__.Import.unit
write data as html escape code
val utf8 : ?styler:styler -> (Hardcaml_waveterm__.Import.string -> Hardcaml_waveterm__.Import.unit) -> Hardcaml_waveterm.Draw.In_memory.ctx -> Hardcaml_waveterm__.Import.unit
write data as utf-8