package current_ansi

  1. Overview
  2. Docs

Module Current_ansiSource

An ANSI escape sequence parser.

Sourcetype t
Sourceval create : unit -> t

Create a new parser in the default state.

Sourceval process : t -> string -> string

process t data reads in data and generates HTML output, parsing escape sequences as it goes. If data ends with a partial sequence, it remembers this and will resume processing on the next call to process.

Sourceval css : string

Some default CSS rules to make the HTML output appear in colour.

OCaml

Innovation. Community. Security.