package ansi

  1. Overview
  2. Docs
ANSI escape sequence parser

Install

Dune Dependency

Authors

Maintainers

Sources

ansi-0.5.0.tbz
sha256=dda7678ee90c48dd58391328c4e5bb6607f38759260c4103b76412d53d069abd
sha512=b8e00e86ff55a3218c85be5fb57a5a2c615c291aa6425ed312f23e97e78aaf305c85b3ebba24ba37f276e7c74c2ad1736e7be51244e2bc7c599345f8f961f1d6

Description

This package provides a basic ANSI escape parser, allowing the OCurrent web UI to show logs in colour.

Published: 01 Apr 2022

README

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.

Dependencies (5)

  1. dune >= "2.0"
  2. tyxml
  3. fmt >= "0.8.7"
  4. astring
  5. ocaml >= "4.10.0"

Dev Dependencies

None

Used by (1)

  1. current_web >= "0.6"

Conflicts

None