package current_ansi

  1. Overview
  2. Docs
ANSI escape sequence parser

Install

Dune Dependency

Authors

Maintainers

Sources

current-v0.3.tbz
sha256=c238a9abf176c1208577c74e884eed763a37f207b4571e7e7fde3d575cb238ec
sha512=888ed07200847055ea950dedf8148d87dfc5178bf873b45354b1bffd11dc128c4759c89cf4170e6252b685deb8fb931a95acf349623cbe6ea1207feca76e1ba6

doc/current_ansi/Current_ansi/index.html

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.