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

Description

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

Published: 21 Dec 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. tyxml
  2. fmt >= "0.8.7"
  3. astring
  4. ocaml >= "4.10.0"
  5. dune >= "3.6"

Dev Dependencies (2)

  1. odoc with-doc
  2. alcotest with-test

Used by (1)

  1. current_web >= "0.6"

Conflicts

None