package ansi

  1. Overview
  2. Docs
ANSI escape sequence parser

Install

Dune Dependency

Authors

Maintainers

Sources

ansi-0.6.0.tbz
sha256=360c63014f0d2ea2e840498defa00e0ec982d7cee76438e86ee5f23f0d3597aa
sha512=c986201c699261e860c934a5440dff7f70e47bf2442c388eecd7f699d1310dffcde0659844b0d508673430cd36b0ee8266599e36e79eb6ad4a0bdbfcecf2a059

README.md.html

OCurrent ANSI escape parser

Program output (such as build logs) often includes ANSI escape codes to colour and style the output. These codes are intended for terminals and are distracting when displayed as text e.g. in web pages. This library inteprets some of the common codes and can convert them to HTML, producing basic styled output (e.g. highlighting errors in red).

It is intended to be used by OCurrent, but may be useful in other projects too.

Licensing

The OCurrent ANSI parser is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

OCaml

Innovation. Community. Security.